Skip to content

Commit

Permalink
Merge pull request #84 from sanjeev-narayanaswamy/master
Browse files Browse the repository at this point in the history
Fix TLE file imports for Python 3
  • Loading branch information
darioizzo authored Jan 23, 2019
2 parents 1604724 + 614066f commit bae1006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pykep/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def read_tle(tle_file, verbose=False, with_name=True):
with open(tle_file, 'r') as f:
for line in f:
if with_name:
line1 = f.next()[:69]
line1 = next(f)[:69]
else:
line1 = line[:69]
line2 = f.next()[:69]
line2 = next(f)[:69]
planet_list.append(tle(line1, line2))
return planet_list

0 comments on commit bae1006

Please sign in to comment.