[Lxml-checkins] r46731 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Wed Sep 19 14:49:50 CEST 2007
Author: scoder
Date: Wed Sep 19 14:49:50 2007
New Revision: 46731
Modified:
lxml/trunk/src/lxml/objectify.pyx
Log:
fix unicode annotation in DataElement
Modified: lxml/trunk/src/lxml/objectify.pyx
==============================================================================
--- lxml/trunk/src/lxml/objectify.pyx (original)
+++ lxml/trunk/src/lxml/objectify.pyx Wed Sep 19 14:49:50 2007
@@ -925,15 +925,12 @@
def __lower_bool(b):
return _lower_bool(b)
-cdef _get_pytypename(obj):
+cdef _pytypename(obj):
if python.PyUnicode_Check(obj):
return "str"
else:
return _typename(obj)
-def __get_pytypename(obj):
- return _get_pytypename(obj)
-
cdef _registerPyTypes():
pytype = PyType('int', int, IntElement)
pytype.xmlSchemaTypes = ("int", "short", "byte", "unsignedShort",
@@ -1751,8 +1748,8 @@
strval = str(_value)
if _pytype is None:
- _pytype = _typename(_value)
-
+ _pytype = _pytypename(_value)
+
if _pytype is not None:
if _pytype == "NoneType" or _pytype == "none":
strval = None
More information about the lxml-checkins
mailing list