]> granicus.if.org Git - python/commitdiff
Minor change for symmetry with PyXML: PyDoc_STR should not include
authorFred Drake <fdrake@acm.org>
Mon, 2 Sep 2002 15:54:06 +0000 (15:54 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 2 Sep 2002 15:54:06 +0000 (15:54 +0000)
the "safety" parentheses since some older compilers refuse to compile
the module then, claiming that static initializers are non-constant.

This doesn't actually make any difference for Python, since these
definitions are not used when compiling with a version of Python that
already defines the PyDoc_* macros.

Modules/pyexpat.c

index 8b73e1efaf6e9d4c2d543a39409916ab0737c0c8..85cb602fb6315d7e849b09e64b572c5da0cee557 100644 (file)
@@ -6,7 +6,7 @@
 #include "expat.h"
 
 #ifndef PyDoc_STRVAR
-#define PyDoc_STR(str)         (str)
+#define PyDoc_STR(str)         str
 #define PyDoc_VAR(name)        static char name[]
 #define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
 #endif