You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Add tests and start a more turnkey testing system.
This commit is contained in:
@@ -56,9 +56,9 @@ def _load_file(filename):
|
||||
fp = open(filename, 'rb')
|
||||
source = fp.read()+'\n'
|
||||
try:
|
||||
co = compile(source, filename, 'exec')
|
||||
co = compile(source, filename, 'exec', dont_inherit=True)
|
||||
except SyntaxError:
|
||||
print >> sys.stderr, '>>Syntax error in', filename, '\n'
|
||||
print('>>Syntax error in %s\n' % filename, file= sys.stderr)
|
||||
raise
|
||||
fp.close()
|
||||
return co
|
||||
|
Reference in New Issue
Block a user