Skip to content

Commit

Permalink
Don't use 'U' mode for opening toughreact_tecplot file in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
acroucher committed Feb 18, 2020
1 parent 8504c3f commit 1d86ea4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t2listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,8 @@ class toughreact_tecplot(object):
"""
def __init__(self, filename, blocks):
self.filename = filename
self._file = open(filename, 'rU')
mode = 'r' if sys.version_info > (3,) else 'rU'
self._file = open(filename, mode)
self.setup_pos()
self.setup_table(blocks)
if self.num_times > 0:
Expand Down

0 comments on commit 1d86ea4

Please sign in to comment.