diff Python/getargs.c @ 20356:c0d662966272 legacy-trunk

Use AS_STRING() following the check and avoid an extra call.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Wed, 10 Oct 2001 02:51:08 +0000
parents fe5ec1a3a7e0
children 92d56ae63ed3
line wrap: on
line diff
--- a/Python/getargs.c	Wed Oct 10 01:45:02 2001 +0000
+++ b/Python/getargs.c	Wed Oct 10 02:51:08 2001 +0000
@@ -647,7 +647,7 @@
 			if (arg == Py_None)
 				*p = 0;
 			else if (PyString_Check(arg))
-				*p = PyString_AsString(arg);
+				*p = PyString_AS_STRING(arg);
 #ifdef Py_USING_UNICODE
 			else if (PyUnicode_Check(arg)) {
 				uarg = UNICODE_DEFAULT_ENCODING(arg);