Commits

Antonio Cuni  committed 4316d9d

(antocuni, mjacob, arigo): we need to specialize _isspace too, else 'char' is promoted to unicode and we always hit the unicode path

  • Participants
  • Parent commits eb520c9
  • Branches refactor-str-types

Comments (0)

Files changed (1)

File rpython/rlib/rstring.py

 
 # -------------- public API for string functions -----------------------
 
+@specialize.argtype(0)
 def _isspace(char):
     if isinstance(char, str):
         return char.isspace()