summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-29 18:38:59 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-29 18:38:59 (GMT)
commit578aa56f9aa481cfb2fe5e0342fc20dce139145a (patch)
treeb37117189746c5d8fb83072b12b9aea9bb5cb886 /Demo
parent927ccd257f69ea96e0de336bbf1d787473ece3e8 (diff)
downloadcpython-578aa56f9aa481cfb2fe5e0342fc20dce139145a.zip
cpython-578aa56f9aa481cfb2fe5e0342fc20dce139145a.tar.gz
cpython-578aa56f9aa481cfb2fe5e0342fc20dce139145a.tar.bz2
Fix typo in unparsing of a class definition.
Diffstat (limited to 'Demo')
-rw-r--r--Demo/parser/test_unparse.py2
-rw-r--r--Demo/parser/unparse.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Demo/parser/test_unparse.py b/Demo/parser/test_unparse.py
index 6c060f3..f4a3e66 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 048f8ca..6e4ef63 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(")")