Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from hackedd/patch-1
Browse files Browse the repository at this point in the history
Include actual version in 'invalid version' exception
  • Loading branch information
gstarnberger committed Oct 1, 2016
2 parents 9708c4c + 758ef0f commit e516b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uncompyle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _load_module(filename):
except KeyError:
raise ImportError, "Unknown magic number %s in %s" % (ord(magic[0])+256*ord(magic[1]), filename)
if version != '2.7':
raise ImportError, "This is a Python %s file! Only Python 2.7 files are supported."
raise ImportError, "This is a Python %s file! Only Python 2.7 files are supported." % version
#print version
fp.read(4) # timestamp
co = marshal.load(fp)
Expand Down

0 comments on commit e516b53

Please sign in to comment.