Parcourir la source

Tolerate and normalize nested tokens.

scossu il y a 11 mois
Parent
commit
5931fa8777
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scriptshifter/tables/__init__.py

+ 1 - 1
scriptshifter/tables/__init__.py

@@ -67,7 +67,7 @@ class Token(str):
     flags = 0
 
     def __init__(self, content):
-        self.content = content
+        self.content = str(content)  # Normalize in case a token is passed.
 
         # Assign special precedence based on token position.
         # Standalone has precedence, then initial, then final, then medial.