Skip to content

Commit

Permalink
Quick setup.py fix for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Jul 1, 2021
1 parent 2bb550d commit fceeb7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -34,6 +34,7 @@
path = 'sgp4/__init__.py'
with open(path, 'rb') as f:
text = f.read().decode('utf-8')
text = text.replace('-*- coding: utf-8 -*-', '') # for Python 2.7
namespace = {}
eval(compile(text, path, 'exec'), namespace)

Expand Down

0 comments on commit fceeb7a

Please sign in to comment.