diff Python/codecs.c @ 86484:3055e61f1e66

Issue #1772673: The type of `char*` arguments now changed to `const char*`.
author Serhiy Storchaka <storchaka@gmail.com>
date Sat, 19 Oct 2013 21:03:34 +0300
parents e7f6cef7a4cc
children 854a2cea31b9
line wrap: on
line diff
--- a/Python/codecs.c	Sat Oct 19 19:55:38 2013 +0200
+++ b/Python/codecs.c	Sat Oct 19 21:03:34 2013 +0300
@@ -441,7 +441,7 @@
         return -1;
     }
     return PyDict_SetItemString(interp->codec_error_registry,
-                                (char *)name, error);
+                                name, error);
 }
 
 /* Lookup the error handling callback function registered under the
@@ -457,7 +457,7 @@
 
     if (name==NULL)
         name = "strict";
-    handler = PyDict_GetItemString(interp->codec_error_registry, (char *)name);
+    handler = PyDict_GetItemString(interp->codec_error_registry, name);
     if (!handler)
         PyErr_Format(PyExc_LookupError, "unknown error handler name '%.400s'", name);
     else