Skip to content

Commit

Permalink
* decompyle/: remove verbose debugging output, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
_why committed May 5, 2008
1 parent ef3799c commit a37e77f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions decompyle/decompyle/__init__.py
Expand Up @@ -208,7 +208,7 @@ def _get_outstream(outfile):
if do_verify:
try:
verify.compare_code_with_srcfile(infile, outfile)
print "+++ okay decompyling", infile, __memUsage()
#print "+++ okay decompyling", infile, __memUsage()
okay_files += 1
except verify.VerifyCmpError, e:
verify_failed_files += 1
Expand All @@ -217,9 +217,9 @@ def _get_outstream(outfile):
print >>sys.stderr, e
else:
okay_files += 1
print "+++ okay decompyling", infile, __memUsage()
print 'decompyled %i files: %i okay, %i failed, %i verify failed' % \
(tot_files, okay_files, failed_files, verify_failed_files)
#print "+++ okay decompyling", infile, __memUsage()
#print 'decompyled %i files: %i okay, %i failed, %i verify failed' % \
# (tot_files, okay_files, failed_files, verify_failed_files)

# local variables:
# tab-width: 4
4 changes: 2 additions & 2 deletions decompyle/decompyle/spark.py
Expand Up @@ -211,8 +211,8 @@ def buildState(self, token, states, i, tree):
needsCompletion = {}
state = states[i]
predicted = {}
print state
print token
#print state
#print token
for item in state:
rule, pos, parent = item
lhs, rhs = rule
Expand Down
4 changes: 0 additions & 4 deletions decompyle/scripts/decompyle
Expand Up @@ -85,13 +85,9 @@ elif outfile and os.path.isdir(outfile):
elif outfile and len(files) > 1:
out_base = outfile; outfile = None

print time.ctime() #, args[0]

try:
main(src_base, out_base, files, outfile, showasm, showast, do_verify)
except KeyboardInterrupt, OSError:
pass
except verify.VerifyCmpError:
raise

print time.ctime()

0 comments on commit a37e77f

Please sign in to comment.