Author: andrewjlawrence
Branch: winconsoleio
Changeset: r97425:b4f36c7acc15
Date: 2019-09-10 23:11 +0100
http://bitbucket.org/pypy/pypy/changeset/b4f36c7acc15/

Log:    Fix translation

diff --git a/pypy/module/_io/interp_win32consoleio.py 
b/pypy/module/_io/interp_win32consoleio.py
--- a/pypy/module/_io/interp_win32consoleio.py
+++ b/pypy/module/_io/interp_win32consoleio.py
@@ -5,7 +5,7 @@
 from pypy.interpreter.typedef import (
     TypeDef, generic_new_descr, GetSetProperty)
 from pypy.interpreter.gateway import WrappedDefault, interp2app, unwrap_spec
-from pypy.module._io.interp_iobase import (W_RawIOBase, DEFAULT_BUFFER_SIZE)
+from pypy.module._io.interp_iobase import (W_RawIOBase, convert_size, 
DEFAULT_BUFFER_SIZE)
 from pypy.module.signal.interp_signal import sigintevent
 from pypy.interpreter.unicodehelper import fsdecode
 from rpython.rtyper.lltypesystem import lltype, rffi
@@ -477,7 +477,7 @@
                     
                     lltype.free(subbuf, flavor='raw')
                     
-                    if n == 0;
+                    if n == 0:
                         break
                         
                     len += n
@@ -485,8 +485,6 @@
             if len == 0 and _buflen(self) == 0:
                 return None
                 
-            
-                
         finally:
             lltype.free(buf, flavor='raw')            
 
diff --git a/rpython/rlib/rwin32.py b/rpython/rlib/rwin32.py
--- a/rpython/rlib/rwin32.py
+++ b/rpython/rlib/rwin32.py
@@ -257,7 +257,7 @@
             return fd
     
     wcsncpy_s = rffi.llexternal('wcsncpy_s', 
-                    [rffi.WCHARP, rffi.SIZE_T, rffi.CWCHARP, rffi.SIZE_T], 
rffi.INT)
+                    [rffi.CWCHARP, rffi.SIZE_T, rffi.CWCHARP, rffi.SIZE_T], 
rffi.INT)
     wcsicmp = rffi.llexternal('_wcsicmp', [rffi.CWCHARP, rffi.CWCHARP], 
rffi.INT)
 
     def build_winerror_to_errno():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to