Skip to content

Commit

Permalink
remove space before first arg in python output (fixes #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyh committed Jan 26, 2013
1 parent 7774230 commit ab5a637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def function_header(self, o, arg_repr, arg_kinds, pre_args_func=None,
# Remove spaces before the first argument name. Generally
# spaces are only present after a type, and if we erase the
# type, we should also erase also the spaces.
n = re.sub(' +([a-zA-Z0-9_])$', '\\1', n)
n = re.sub(' +([a-zA-Z0-9_]+)$', '\\1', n)
self.string(n)
if i < len(arg_repr.assigns):
self.token(arg_repr.assigns[i])
Expand Down

0 comments on commit ab5a637

Please sign in to comment.