Author: Alecsandru Patrascu <[email protected]>
Branch: ctypes_char_indexing
Changeset: r91554:2ea696d9721d
Date: 2017-05-30 10:18 +0300
http://bitbucket.org/pypy/pypy/changeset/2ea696d9721d/

Log:    indentation fix

diff --git a/lib_pypy/_ctypes/array.py b/lib_pypy/_ctypes/array.py
--- a/lib_pypy/_ctypes/array.py
+++ b/lib_pypy/_ctypes/array.py
@@ -80,12 +80,12 @@
         # If a char_p or unichar_p is received, skip the string interpretation
         if base._ffiargtype != types.Pointer(types.char_p) and \
            base._ffiargtype != types.Pointer(types.unichar_p):
-            #this seems to be a string if we're array of char, surprise!
+            # this seems to be a string if we're array of char, surprise!
             from ctypes import c_char, c_wchar
             if self._type_ is c_char:
-               return _rawffi.charp2string(resarray.buffer, self._length_)
+                return _rawffi.charp2string(resarray.buffer, self._length_)
             if self._type_ is c_wchar:
-               return _rawffi.wcharp2unicode(resarray.buffer, self._length_)
+                return _rawffi.wcharp2unicode(resarray.buffer, self._length_)
         res = self.__new__(self)
         ffiarray = self._ffiarray.fromaddress(resarray.buffer, self._length_)
         res._buffer = ffiarray
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to