]> granicus.if.org Git - python/commitdiff
Fix typo in unparsing of a class definition.
authorMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 18:38:59 +0000 (18:38 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 29 Jun 2010 18:38:59 +0000 (18:38 +0000)
Demo/parser/test_unparse.py
Demo/parser/unparse.py

index 6c060f3d2555b7aa919a1452f204a211c560ae48..f4a3e6611365bec346103cf24ff4fe3b0b2da641 100644 (file)
@@ -156,6 +156,8 @@ class UnparseTestCase(ASTTestCase):
     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."""
index 048f8ca43204dd2b6bf7f50df8096b5a59f26d4e..6e4ef6348e11dee25cff820a25d2448ce8146dc3 100644 (file)
@@ -215,7 +215,7 @@ class Unparser:
         if t.kwargs:
             if comma: self.write(", ")
             else: comma = True
-            self.write("*")
+            self.write("**")
             self.dispatch(t.kwargs)
         self.write(")")