unparser: Don't put unnecessary parentheses on class declarations
Backport of
* 25160cdc47
This commit is contained in:
parent
ff5e73d6eb
commit
0776c3b4d6
@ -415,7 +415,7 @@ def _ClassDef(self, t):
|
|||||||
self.dispatch(deco)
|
self.dispatch(deco)
|
||||||
self.fill("class " + t.name)
|
self.fill("class " + t.name)
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
with self.delimit("(", ")"):
|
with self.delimit_if("(", ")", condition=t.bases or t.keywords):
|
||||||
comma = False
|
comma = False
|
||||||
for e in t.bases:
|
for e in t.bases:
|
||||||
if comma:
|
if comma:
|
||||||
|
Loading…
Reference in New Issue
Block a user