Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: release-2.1.x
Changeset: r65615:bdb563a30cf9
Date: 2013-07-24 11:25 +0200
http://bitbucket.org/pypy/pypy/changeset/bdb563a30cf9/

Log:    fix translation, maybe

diff --git a/rpython/rtyper/module/ll_os_stat.py 
b/rpython/rtyper/module/ll_os_stat.py
--- a/rpython/rtyper/module/ll_os_stat.py
+++ b/rpython/rtyper/module/ll_os_stat.py
@@ -105,7 +105,10 @@
 
 
 class SomeStatvfsResult(annmodel.SomeObject):
-    knowntype = os.statvfs_result
+    if hasattr(os, 'statvfs_result'):
+        knowntype = os.statvfs_result
+    else:
+        knowntype = None # will not be used
 
     def rtyper_makerepr(self, rtyper):
         from rpython.rtyper.module import r_os_stat
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to