diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-02 01:03:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-02 01:03:11 (GMT) |
commit | f3fd733f928752c9e35f8f5141a54cd21c0993b5 (patch) | |
tree | e5ed83eca223ac5ee8a0e836dc8ee8206f89f688 /Modules | |
parent | 6f58b6b50445be3cbebf592680bab928c4311a89 (diff) | |
download | cpython-f3fd733f928752c9e35f8f5141a54cd21c0993b5.zip cpython-f3fd733f928752c9e35f8f5141a54cd21c0993b5.tar.gz cpython-f3fd733f928752c9e35f8f5141a54cd21c0993b5.tar.bz2 |
Remove useless argument of _PyUnicode_AsDefaultEncodedString()
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 | ||||
-rw-r--r-- | Modules/_dbmmodule.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index ff35862..d30018b 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -1826,7 +1826,7 @@ PyCSimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) return NULL; } if (PyUnicode_Check(proto)) { - PyObject *v = _PyUnicode_AsDefaultEncodedString(proto, NULL); + PyObject *v = _PyUnicode_AsDefaultEncodedString(proto); if (!v) goto error; proto_str = PyBytes_AS_STRING(v); diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 827acce..69a7112 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -219,7 +219,7 @@ dbm_contains(PyObject *self, PyObject *arg) return -1; } if (PyUnicode_Check(arg)) { - arg = _PyUnicode_AsDefaultEncodedString(arg, NULL); + arg = _PyUnicode_AsDefaultEncodedString(arg); if (arg == NULL) return -1; } |