Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r98227:c3817c90d7af
Date: 2019-12-03 22:43 +0100
http://bitbucket.org/pypy/pypy/changeset/c3817c90d7af/

Log:    Issue #3125

        Ooops!

diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -800,7 +800,7 @@
         DIRENT = rffi_platform.Struct('struct dirent',
             [('d_name', lltype.FixedSizeArray(rffi.CHAR, 1)),
              ('d_ino', lltype.Signed)]
-            + [('d_type', rffi.INT)] if HAVE_D_TYPE else [])
+            + ([('d_type', rffi.INT)] if HAVE_D_TYPE else []))
         if HAVE_D_TYPE:
             DT_UNKNOWN = rffi_platform.ConstantInteger('DT_UNKNOWN')
             DT_REG     = rffi_platform.ConstantInteger('DT_REG')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to