[pypy-commit] pyrepl py3ksupport: fix type check error

RonnyPfannschmidt noreply at buildbot.pypy.org
Thu Oct 20 16:12:11 CEST 2011


Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: py3ksupport
Changeset: r150:20637596ceea
Date: 2011-10-20 15:39 +0200
http://bitbucket.org/pypy/pyrepl/changeset/20637596ceea/

Log:	fix type check error

diff --git a/pyrepl/reader.py b/pyrepl/reader.py
--- a/pyrepl/reader.py
+++ b/pyrepl/reader.py
@@ -524,7 +524,7 @@
 
     def do_cmd(self, cmd):
         #print cmd
-        if isinstance(cmd[0], str):
+        if isinstance(cmd[0], basestring): #XXX: unify to text
             cmd = self.commands.get(cmd[0],
                                     commands.invalid_command)(self, *cmd)
         elif isinstance(cmd[0], type):


More information about the pypy-commit mailing list