[pypy-svn] r69178 - pypy/branch/faster-raise/pypy/module/_file

arigo at codespeak.net arigo at codespeak.net
Wed Nov 11 16:33:44 CET 2009


Author: arigo
Date: Wed Nov 11 16:33:43 2009
New Revision: 69178

Modified:
   pypy/branch/faster-raise/pypy/module/_file/interp_file.py
Log:
Remove an obscure usage of abstract_isinstance_w.


Modified: pypy/branch/faster-raise/pypy/module/_file/interp_file.py
==============================================================================
--- pypy/branch/faster-raise/pypy/module/_file/interp_file.py	(original)
+++ pypy/branch/faster-raise/pypy/module/_file/interp_file.py	Wed Nov 11 16:33:43 2009
@@ -387,7 +387,8 @@
             head = "closed"
         else:
             head = "open"
-        if self.space.abstract_isinstance_w(self.w_name, self.space.w_str):
+        if self.space.is_true(self.space.isinstance(self.w_name,
+                                                    self.space.w_str)):
             info = "%s file '%s', mode '%s'" % (
                 head,
                 self.space.str_w(self.w_name),



More information about the Pypy-commit mailing list