1.1 --- a/modules.py Thu Sep 08 23:06:03 2016 +0200
1.2 +++ b/modules.py Fri Sep 09 17:23:11 2016 +0200
1.3 @@ -467,7 +467,7 @@
1.4 while line:
1.5 function, names = self._get_fields(line)
1.6 self.importer.function_parameters[function] = \
1.7 - self.function_parameters[function] = names and names.split(", ") or []
1.8 + self.function_parameters[function] = names != "{}" and names.split(", ") or []
1.9 line = f.readline().rstrip()
1.10
1.11 def _get_function_defaults(self, f):
1.12 @@ -829,7 +829,11 @@
1.13 functions = self.function_parameters.keys()
1.14 functions.sort()
1.15 for function in functions:
1.16 - print >>f, function, ", ".join(self.function_parameters[function])
1.17 + parameters = self.function_parameters[function]
1.18 + if parameters:
1.19 + print >>f, function, ", ".join(parameters)
1.20 + else:
1.21 + print >>f, function, "{}"
1.22
1.23 print >>f
1.24 print >>f, "function default parameters:"