summaryrefslogtreecommitdiff
path: root/src/lxml/objectify.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lxml/objectify.pyx')
-rw-r--r--src/lxml/objectify.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxml/objectify.pyx b/src/lxml/objectify.pyx
index 376695a8..791f2cf8 100644
--- a/src/lxml/objectify.pyx
+++ b/src/lxml/objectify.pyx
@@ -976,7 +976,7 @@ cdef _checkNumber(bytes_unicode s, bint allow_float):
cdef NumberParserState state = NPS_SPACE_PRE
for c in s:
- if c.isdigit() if (bytes_unicode is unicode) else c in b'0123456789':
+ if c in u'0123456789':
if state in (NPS_DIGITS, NPS_FRACTION, NPS_DIGITS_EXP):
pass
elif state in (NPS_SPACE_PRE, NPS_SIGN):