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

Fix an isintance to be more lenient for Py2

parent 48469fb9
No related branches found
No related tags found
No related merge requests found
Pipeline #19208 failed
......@@ -145,7 +145,7 @@ class SymbolicAssignmentCollection(object):
return result
def add_assignment(self, name, expr, root_name=None, wrt_set=None):
assert isinstance(name, str)
assert isinstance(name, six.string_types)
assert name not in self.assignments
if wrt_set 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