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

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