unparse: drop python 3.4 remnants (#40333)

This commit is contained in:
Harmen Stoppels 2023-10-05 18:52:23 +02:00 committed by GitHub
parent 9e9653ac58
commit 4ce5d14066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,21 +398,6 @@ def visit_ClassDef(self, node):
else:
comma = True
self.dispatch(e)
if sys.version_info[:2] < (3, 5):
if node.starargs:
if comma:
self.write(", ")
else:
comma = True
self.write("*")
self.dispatch(node.starargs)
if node.kwargs:
if comma:
self.write(", ")
else:
comma = True
self.write("**")
self.dispatch(node.kwargs)
with self.block():
self.dispatch(node.body)