Fix logic in parser

This commit is contained in:
Rochet2
2014-08-12 19:40:22 +03:00
parent 1855364cb1
commit 9e49400768

View File

@@ -177,7 +177,7 @@ class ClassParser(object):
self.method_name = match.group(1)
# If there's no prototype, make one with all params and returns.
if self.prototypes:
if not self.prototypes:
parameters = ', '.join([param.name for param in self.params])
# Only pad with spaces when there are no parameters.
if parameters != '':