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

Import 'reduce' for Python 3

parent a1372b5f
No related branches found
No related tags found
No related merge requests found
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