diff options
author | Neil <nyamatongwe@gmail.com> | 2023-03-15 09:45:15 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-03-15 09:45:15 +1100 |
commit | 481b5651df9bd160d4ff1f1ba471eead61a53252 (patch) | |
tree | d1fdb9642eaaef49eab6675dc816a7f7246f93b9 /test/ScintillaCallable.py | |
parent | f5b5b395e2c21c6c8a338a2b2641e3143534589c (diff) | |
download | scintilla-mirror-481b5651df9bd160d4ff1f1ba471eead61a53252.tar.gz |
Fix some warnings from ruff.
Diffstat (limited to 'test/ScintillaCallable.py')
-rw-r--r-- | test/ScintillaCallable.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ScintillaCallable.py b/test/ScintillaCallable.py index 126281aac..2f12c6ba8 100644 --- a/test/ScintillaCallable.py +++ b/test/ScintillaCallable.py @@ -2,9 +2,9 @@ from __future__ import unicode_literals -import ctypes, os, sys +import ctypes -from ctypes import c_int, c_ulong, c_char_p, c_wchar_p, c_ushort, c_uint, c_long, c_ssize_t +from ctypes import c_int, c_char_p, c_long, c_ssize_t def IsEnumeration(t): return t[:1].isupper() @@ -52,7 +52,7 @@ class SciCall: self._ptr = ptr self._msg = msg self._stringResult = stringResult - def __call__(self, w=0, l=0): + def __call__(self, w=0, lp=0): ww = ctypes.cast(w, c_char_p) if self._stringResult: lengthBytes = self._fn(self._ptr, self._msg, ww, None) @@ -63,7 +63,7 @@ class SciCall: assert lengthBytes == lengthBytes2 return bytearray(result)[:lengthBytes] else: - ll = ctypes.cast(l, c_char_p) + ll = ctypes.cast(lp, c_char_p) return self._fn(self._ptr, self._msg, ww, ll) sciFX = ctypes.CFUNCTYPE(c_ssize_t, c_char_p, c_int, c_char_p, c_char_p) |