--- a/targets/typemapping.py Mon Aug 21 21:55:18 2017 +0300
+++ b/targets/typemapping.py Mon Aug 21 22:41:37 2017 +0300
@@ -23,14 +23,13 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import ctypes
+from ctypes import *
+from datetime import timedelta as td
+
ctypes.pythonapi.PyString_AsString.argtypes = (ctypes.c_void_p,)
ctypes.pythonapi.PyString_AsString.restype = ctypes.POINTER(ctypes.c_char)
-from ctypes import *
-from datetime import timedelta as td
-
-
class IEC_STRING(Structure):
"""
Must be changed according to changes in iec_types.h