Skip to content

Commit 8bb62ce

Browse files
code-health: remove c_ssize_t type wrapper
ctypes.c_ssize_t was introduced in Python 2.7 [1] and Python 3.2 [2]. 1. https://docs.python.org/2.7/library/ctypes.html#ctypes.c_ssize_t 2. https://docs.python.org/3.2/library/ctypes.html#ctypes.c_ssize_t Part of #212
1 parent 91085c7 commit 8bb62ce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: tarantool/connection.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
import ctypes
1919
import ctypes.util
20-
try:
21-
from ctypes import c_ssize_t
22-
except ImportError:
23-
from ctypes import c_longlong as c_ssize_t
20+
from ctypes import c_ssize_t
2421

2522
import msgpack
2623

0 commit comments

Comments
 (0)