Show More
@@ -15,14 +15,6 b'' | |||
|
15 | 15 | #include "compat.h" |
|
16 | 16 | #include "util.h" |
|
17 | 17 | |
|
18 | #ifdef IS_PY3K | |
|
19 | /* The mapping of Python types is meant to be temporary to get Python | |
|
20 | * 3 to compile. We should remove this once Python 3 support is fully | |
|
21 | * supported and proper types are used in the extensions themselves. */ | |
|
22 | #define PyInt_Type PyLong_Type | |
|
23 | #define PyInt_AS_LONG PyLong_AS_LONG | |
|
24 | #endif | |
|
25 | ||
|
26 | 18 | /* clang-format off */ |
|
27 | 19 | static const char lowertable[128] = { |
|
28 | 20 | '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', |
@@ -228,12 +220,12 b' PyObject *make_file_foldmap(PyObject *se' | |||
|
228 | 220 | const char *table; |
|
229 | 221 | |
|
230 | 222 | if (!PyArg_ParseTuple(args, "O!O!O!:make_file_foldmap", &PyDict_Type, |
|
231 |
&dmap, &Py |
|
|
223 | &dmap, &PyLong_Type, &spec_obj, &PyFunction_Type, | |
|
232 | 224 | &normcase_fallback)) { |
|
233 | 225 | goto quit; |
|
234 | 226 | } |
|
235 | 227 | |
|
236 |
spec = (int)Py |
|
|
228 | spec = (int)PyLong_AS_LONG(spec_obj); | |
|
237 | 229 | switch (spec) { |
|
238 | 230 | case NORMCASE_LOWER: |
|
239 | 231 | table = lowertable; |
General Comments 0
You need to be logged in to leave comments.
Login now