Commit 956f1dfa authored by Robert Bradshaw's avatar Robert Bradshaw

Python 2.6.4 Fix (keywords must be strings)

parent c4a17ab4
...@@ -142,7 +142,7 @@ class UtilityCodeBase(object): ...@@ -142,7 +142,7 @@ class UtilityCodeBase(object):
type = 'Code' type = 'Code'
utility = utilities.setdefault(name, [None, None, {}]) utility = utilities.setdefault(name, [None, None, {}])
else: else:
tags.setdefault(m.group(2), set()).add(m.group(3)) tags.setdefault(str(m.group(2)), set()).add(m.group(3))
lines.append('') # keep line number correct lines.append('') # keep line number correct
else: else:
lines.append(replace_comments('', line).rstrip()) lines.append(replace_comments('', line).rstrip())
...@@ -203,7 +203,6 @@ class UtilityCodeBase(object): ...@@ -203,7 +203,6 @@ class UtilityCodeBase(object):
if 'file' not in kwargs and from_file: if 'file' not in kwargs and from_file:
kwargs['file'] = from_file kwargs['file'] = from_file
return cls(**kwargs) return cls(**kwargs)
@classmethod @classmethod
......
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