Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
5d70a3cd
Commit
5d70a3cd
authored
5 years ago
by
Tanner Prestegard
Committed by
GraceDB
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Import 'reduce' for Python 3
parent
a1372b5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gracedb/alerts/recipients.py
+5
-0
5 additions, 0 deletions
gracedb/alerts/recipients.py
gracedb/api/tests/utils.py
+4
-0
4 additions, 0 deletions
gracedb/api/tests/utils.py
gracedb/search/query/events.py
+4
-0
4 additions, 0 deletions
gracedb/search/query/events.py
with
13 additions
and
0 deletions
gracedb/alerts/recipients.py
+
5
−
0
View file @
5d70a3cd
try
:
from
functools
import
reduce
except
ImportError
:
# python < 3
pass
from
django.conf
import
settings
from
django.db.models
import
Q
...
...
This diff is collapsed.
Click to expand it.
gracedb/api/tests/utils.py
+
4
−
0
View file @
5d70a3cd
from
copy
import
deepcopy
try
:
from
functools
import
reduce
except
ImportError
:
# python < 3
pass
try
:
from
unittest
import
mock
except
ImportError
:
# python < 3
...
...
This diff is collapsed.
Click to expand it.
gracedb/search/query/events.py
+
4
−
0
View file @
5d70a3cd
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment