Ah, Symbols.
This commit is contained in:
+2
-1
@@ -120,7 +120,8 @@ def delabel(f, seen=None, c=None):
|
|||||||
if not isinstance(f, tuple):
|
if not isinstance(f, tuple):
|
||||||
try:
|
try:
|
||||||
seen[f] = f.__class__(c[f.prefix] + 1)
|
seen[f] = f.__class__(c[f.prefix] + 1)
|
||||||
except TypeError: # FunctionJoyTypes break this.
|
except (TypeError, # FunctionJoyTypes break this.
|
||||||
|
AttributeError): # Symbol
|
||||||
seen[f] = f
|
seen[f] = f
|
||||||
else:
|
else:
|
||||||
c[f.prefix] += 1
|
c[f.prefix] += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user