From: Mark Dickinson Date: Tue, 29 Jun 2010 18:38:59 +0000 (+0000) Subject: Fix typo in unparsing of a class definition. X-Git-Tag: v3.2a1~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=578aa56f9aa481cfb2fe5e0342fc20dce139145a;p=thirdparty%2FPython%2Fcpython.git Fix typo in unparsing of a class definition. --- diff --git a/Demo/parser/test_unparse.py b/Demo/parser/test_unparse.py index 6c060f3d2555..f4a3e6611365 100644 --- a/Demo/parser/test_unparse.py +++ b/Demo/parser/test_unparse.py @@ -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.""" diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py index 048f8ca43204..6e4ef6348e11 100644 --- a/Demo/parser/unparse.py +++ b/Demo/parser/unparse.py @@ -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(")")