1. Pypy
  2. Untitled project
  3. pypy


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

View file
  • Ignore whitespace
 # -------------- public API for string functions -----------------------
 def _isspace(char):
     if isinstance(char, str):
         return char.isspace()