Skip to content
Snippets Groups Projects
Commit 2ba4c585 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Import 'reduce' for Python 3

parent 524691f1
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !29. Comments created here will be created in the context of that merge request.
try:
from functools import reduce
except ImportError: # python < 3
pass
from django.conf import settings
from django.db.models import Q
......
from copy import deepcopy
try:
from functools import reduce
except ImportError: # python < 3
pass
try:
from unittest import mock
except ImportError: # python < 3
......
......@@ -15,6 +15,10 @@ from pyparsing import Word, nums, Literal, CaselessLiteral, delimitedList, \
oneOf, stringStart, stringEnd, FollowedBy, ParseResults, ParseException, \
CaselessKeyword
import pytz
try:
from functools import reduce
except ImportError: # python < 3
pass
from django.db.models import Q
from django.db.models.query import QuerySet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment