PyArg_Parse*() functions: factorize code for s/z and u/Z formats

This commit is contained in:
Victor Stinner 2010-06-24 22:31:12 +00:00
parent 4aae1ebab2
commit 3c9e6e9375
2 changed files with 26 additions and 97 deletions

View file

@ -184,7 +184,7 @@ class NamespaceSeparatorTest(unittest.TestCase):
self.fail()
except TypeError as e:
self.assertEquals(str(e),
'ParserCreate() argument 2 must be string or None, not int')
'ParserCreate() argument 2 must be str or None, not int')
try:
expat.ParserCreate(namespace_separator='too long')