[pypy-svn] pypy default: write this function in the style of the others around it

cfbolz commits-noreply at bitbucket.org
Fri Feb 25 17:25:42 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r42290:a39777796c07
Date: 2011-02-25 17:22 +0100
http://bitbucket.org/pypy/pypy/changeset/a39777796c07/

Log:	write this function in the style of the others around it

diff --git a/pypy/rpython/rstr.py b/pypy/rpython/rstr.py
--- a/pypy/rpython/rstr.py
+++ b/pypy/rpython/rstr.py
@@ -621,8 +621,8 @@
     __metaclass__ = StaticMethods
 
     def ll_char_isspace(ch):
-        c = ord(ch) 
-        return c == 32 or (c <= 13 and c >= 9)   # c in (9, 10, 11, 12, 13, 32)
+        c = ord(ch)
+        return c == 32 or (9 <= c <= 13)   # c in (9, 10, 11, 12, 13, 32)
 
     def ll_char_isdigit(ch):
         c = ord(ch)


More information about the Pypy-commit mailing list