[Python-checkins] r82377 - in python/branches/py3k/Demo/parser: test_unparse.py unparse.py
mark.dickinson
python-checkins at python.org
Tue Jun 29 20:39:00 CEST 2010
Author: mark.dickinson
Date: Tue Jun 29 20:38:59 2010
New Revision: 82377
Log:
Fix typo in unparsing of a class definition.
Modified:
python/branches/py3k/Demo/parser/test_unparse.py
python/branches/py3k/Demo/parser/unparse.py
Modified: python/branches/py3k/Demo/parser/test_unparse.py
==============================================================================
--- python/branches/py3k/Demo/parser/test_unparse.py (original)
+++ python/branches/py3k/Demo/parser/test_unparse.py Tue Jun 29 20:38:59 2010
@@ -156,6 +156,8 @@
def test_class_decorators(self):
self.check_roundtrip(class_decorator)
+ def test_class_definition(self):
+ self.check_roundtrip("class A(metaclass=type, *[], **{}): pass")
class DirectoryTestCase(ASTTestCase):
"""Test roundtrip behaviour on all files in Lib and Lib/test."""
Modified: python/branches/py3k/Demo/parser/unparse.py
==============================================================================
--- python/branches/py3k/Demo/parser/unparse.py (original)
+++ python/branches/py3k/Demo/parser/unparse.py Tue Jun 29 20:38:59 2010
@@ -215,7 +215,7 @@
if t.kwargs:
if comma: self.write(", ")
else: comma = True
- self.write("*")
+ self.write("**")
self.dispatch(t.kwargs)
self.write(")")
More information about the Python-checkins
mailing list