Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update src/lxml/lxml.etree.pyx #83

Closed
wants to merge 1 commit into from

2 participants

martijnmegens scoder
martijnmegens

Don't know python, but i get an error, and this might be the problem.

Sorry to waste your time if encode(u"UTF-8") is valid :-(

martijnmegens martijnmegens Update src/lxml/lxml.etree.pyx
Don't know python, but i get an error, and this might be the problem.
2c75841
scoder
Owner

It's valid, however, it won't hurt to remove it. What was the error you got?

martijnmegens

File "lxml.etree.pyx", line 134, in init lxml.etree (src/lxml/lxml.etree.c:179 662) TypeError: encode() argument 1 must be string without null bytes, not unicode

scoder
Owner

And this is using Python version ... ?

martijnmegens

Python 2.7.3-3, but got a update this morning, all running fine, sorry for the trouble :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2012
  1. martijnmegens

    Update src/lxml/lxml.etree.pyx

    martijnmegens authored
    Don't know python, but i get an error, and this might be the problem.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/lxml/lxml.etree.pyx
2  src/lxml/lxml.etree.pyx
View
@@ -131,7 +131,7 @@ _initThreadLogging()
xmlparser.xmlInitParser()
# filename encoding
-cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode(u"UTF-8")
+cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode("UTF-8")
cdef char* _C_FILENAME_ENCODING = _cstr(_FILENAME_ENCODING)
# set up some default namespace prefixes
Something went wrong with that request. Please try again.