Ah, Symbols.

This commit is contained in:
Simon Forman 2018-07-11 07:12:14 -07:00
parent 343a2f8459
commit fcf483af22
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ def delabel(f, seen=None, c=None):
if not isinstance(f, tuple):
try:
seen[f] = f.__class__(c[f.prefix] + 1)
except TypeError: # FunctionJoyTypes break this.
except (TypeError, # FunctionJoyTypes break this.
AttributeError): # Symbol
seen[f] = f
else:
c[f.prefix] += 1