LXML r76211 generally supports Python 3, but there are still some SyntaxErrors.
(The problem with ez_setup.py can be ignored.)
$ python3.1 -m compileall -q .
*** Error compiling ./benchmark/bench_etree.py ...
File "./benchmark/bench_etree.py", line 10
UTEXT = u"some klingon: \F8D2"
^
SyntaxError: invalid syntax
*** Error compiling ./benchmark/benchbase.py ...
File "./benchmark/benchbase.py", line 10
_UTEXT = u"some klingon: \F8D2" * TREE_FACTOR
^
SyntaxError: invalid syntax
*** Error compiling ./doc/mklatex.py ...
File "./doc/mklatex.py", line 247
print "Creating %s" % outname
^
SyntaxError: invalid syntax
*** Error compiling ./doc/rest2html.py ...
File "./doc/rest2html.py", line 41
except ValueError, e:
^
SyntaxError: invalid syntax
*** Error compiling ./doc/rest2latex.py ...
File "./doc/rest2latex.py", line 44
except ValueError, e:
^
SyntaxError: invalid syntax
*** Error compiling ./doc/s5/rst2s5.py ...
File "./doc/s5/rst2s5.py", line 82
parsed = highlight(u'\n'.join(self.content), lexer, formatter)
^
SyntaxError: invalid syntax
*** Error compiling ./ez_setup.py ...
File "./ez_setup.py", line 106
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
*** Error compiling ./src/local_doctest.py ...
File "./src/local_doctest.py", line 372
raise TypeError, 'Expected a module: %r' % module
^
SyntaxError: invalid syntax
*** Error compiling ./src/lxml/html/_diffcommand.py ...
File "./src/lxml/html/_diffcommand.py", line 85
print "Not yet implemented"
^
SyntaxError: invalid syntax
*** Error compiling ./src/lxml/html/tests/transform_feedparser_data.py ...
File "./src/lxml/html/tests/transform_feedparser_data.py", line 91
print 'Bad data in %s:' % filename
^
SyntaxError: invalid syntax
*** Error compiling ./src/lxml/tests/test_errors.py ...
File "./src/lxml/tests/test_errors.py", line 1
# -*- coding: utf-8 -*-
^
SyntaxError: invalid character in identifier
*** Error compiling ./tools/xpathgrep.py ...
File "./tools/xpathgrep.py", line 5
except ImportError, e:
^
SyntaxError: invalid syntax
--
Arfrever Frehtes Taifersar Arahesis