Skip to content

Commit

Permalink
Fix the listing/map output to be Python 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcmartin committed Apr 13, 2019
1 parent 41bf01d commit 99f074d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ophis/Listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def dump(self):
if self.filename == "-":
out = sys.stdout
else:
out = file(self.filename, "w")
out = open(self.filename, "wt")
for x in self.listing:
if type(x) is str:
print(x, file=out)
Expand Down Expand Up @@ -118,7 +118,7 @@ def dump(self):
if self.filename == "-":
out = sys.stdout
else:
out = file(self.filename, "w")
out = open(self.filename, "wt")
maxlabellen = 0
self.labeldata.sort()
for (loc, label, srcloc) in self.labeldata:
Expand Down

0 comments on commit 99f074d

Please sign in to comment.