Skip to content

Commit

Permalink
Similar to the other one.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanRensink committed Nov 16, 2014
1 parent 031484b commit 0942fa8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyminifier/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@

# Globals
py3 = False
if sys.version_info.major == 3:
py3 = True

if not isinstance(sys.version_info.major, tuple):
if sys.version_info.major == 3:
py3 = True

shebang = re.compile('^#\!.*$')
encoding = re.compile(".*coding[:=]\s*([-\w.]+)")
# __builtins__ is different for every module so we need a hard-coded list:
Expand Down

0 comments on commit 0942fa8

Please sign in to comment.