Commit a082dbd4 authored by Stefan Behnel's avatar Stefan Behnel

rewrote Python 2.5-ism

parent 5ecc84e3
...@@ -85,7 +85,9 @@ class Signature: ...@@ -85,7 +85,9 @@ class Signature:
def method_flags(self): def method_flags(self):
if self.ret_format == "O": 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 full_args in ["O", "T"]:
if self.has_generic_args: if self.has_generic_args:
return [method_varargs, method_keywords] 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