Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
5f054540
Commit
5f054540
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
AthenaCommon: Py3 fix for ChapPy
`builtins.file` is not available in Py3 and does not need an import in Py2.
parent
4d389b16
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/AthenaCommon/python/ChapPy.py
+0
-1
0 additions, 1 deletion
Control/AthenaCommon/python/ChapPy.py
with
0 additions
and
1 deletion
Control/AthenaCommon/python/ChapPy.py
+
0
−
1
View file @
5f054540
...
...
@@ -32,7 +32,6 @@ def dump( buf, stdout = sys.stdout ):
fname
=
None
if
isinstance
(
buf
,
str
):
fname
=
buf
from
builtins
import
file
if
six
.
PY3
:
import
io
file
=
io
.
IOBase
# noqa: F811
...
...
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