Skip to content

Commit

Permalink
leave field as tuple in %-string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wimglenn committed Jun 1, 2017
1 parent 7c8dd4e commit 0bf2788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.py
Expand Up @@ -825,7 +825,7 @@ def _to_group_name(self, field):
elif '_' in field:
group = field.replace('_', '_' * n)
else:
raise KeyError('duplicated group name %r' % field)
raise KeyError('duplicated group name %r' % (field,))

# save off the mapping
self._group_to_name_map[group] = field
Expand Down

0 comments on commit 0bf2788

Please sign in to comment.