Commit 36174f39 authored by Stefan Behnel's avatar Stefan Behnel

rewrote Python 2.5-ism

parent f21c3d78
......@@ -85,7 +85,9 @@ class Signature:
def method_flags(self):
if self.ret_format == "O":
full_args = "O" + self.fixed_arg_format if self.has_dummy_arg else self.fixed_arg_format
full_args = self.fixed_arg_format
if self.has_dummy_arg:
full_args = "O" + full_args
if full_args in ["O", "T"]:
if self.has_generic_args:
return [method_varargs, method_keywords]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment