Skip to content

Commit

Permalink
Merge pull request #21 from JohanRensink/patch-2
Browse files Browse the repository at this point in the history
Some more < 2.7 support fixes.  Thanks JohanRensink
  • Loading branch information
liftoff committed Jan 30, 2015
2 parents c0f2706 + 0942fa8 commit 6bbed16
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 6bbed16

Please sign in to comment.