[Python-checkins] r52871 - sandbox/trunk/2to3/play.py
guido.van.rossum
python-checkins at python.org
Thu Nov 30 20:19:11 CET 2006
Author: guido.van.rossum
Date: Thu Nov 30 20:19:10 2006
New Revision: 52871
Modified:
sandbox/trunk/2to3/play.py
Log:
Show diffs for example.py too.
Modified: sandbox/trunk/2to3/play.py
==============================================================================
--- sandbox/trunk/2to3/play.py (original)
+++ sandbox/trunk/2to3/play.py Thu Nov 30 20:19:10 2006
@@ -21,9 +21,12 @@
gr = driver.load_grammar("Grammar.txt")
dr = driver.Driver(gr, convert=pynode.convert)
- tree = dr.parse_file("example.py", debug=True)
+ fn = "example.py"
+ tree = dr.parse_file(fn, debug=True)
tree.set_parents()
sys.stdout.write(str(tree))
+ if not diff(fn, tree):
+ print "No diffs."
return # Comment out to run the complete test suite below
problems = []
More information about the Python-checkins
mailing list