Skip to content
Snippets Groups Projects
Commit 8f652d53 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

SymbolicAssignmentCollection: force LHS names to be non-unicode on Py2

parent 74a92cf0
No related branches found
No related tags found
No related merge requests found
Pipeline #19209 failed
......@@ -148,6 +148,9 @@ class SymbolicAssignmentCollection(object):
assert isinstance(name, six.string_types)
assert name not in self.assignments
if six.PY2 and isinstance(name, unicode):
name = name.encode("us-ascii")
if wrt_set is None:
wrt_set = frozenset()
if root_name is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment