diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2011-12-02 13:10:01 +0100 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2011-12-02 13:10:01 +0100 |
| commit | 90b0b10743b89ec4e0533a9ebca42715f0054366 (patch) | |
| tree | 24865d9bbce320dbe3b2ddf26b26b7c1f962b09e /src/lxml/objectpath.pxi | |
| parent | d22fed4e1d42a6994e2ef8d578cddeff7808faa8 (diff) | |
| download | python-lxml-90b0b10743b89ec4e0533a9ebca42715f0054366.tar.gz | |
use lower case encoding names when de-/encoding in Python
Diffstat (limited to 'src/lxml/objectpath.pxi')
| -rw-r--r-- | src/lxml/objectpath.pxi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxml/objectpath.pxi b/src/lxml/objectpath.pxi index 8fcfb44b..54077ce9 100644 --- a/src/lxml/objectpath.pxi +++ b/src/lxml/objectpath.pxi @@ -94,7 +94,7 @@ cdef _parseObjectPathString(path): cdef bint has_dot cdef list new_path = [] if python.PyBytes_Check(path): - path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL) + path = python.PyUnicode_FromEncodedObject(path, 'ascii', NULL) path = path.strip() if path == u'.': return [_RELATIVE_PATH_SEGMENT] |
