| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add tests for external document adoption
|
| | |
|
| |
| |
| |
| | |
adopt_external_document() should type check its argument
|
|/
|
|
| |
"adopt_external_document()" forbids further modifications by external code
|
|
|
|
| |
PyCapsule with a libxml2 document pointer and wraps it in an lxml ElementTree
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
Python 2.6 cannot run packages with "-m", and you cannot upgrade pip
while running the pip.exe script. So we must open-code the Python 2.7+
behaviour of the -m option.
|
|\ \
| | |
| | | |
Add Python 2.6 to the AppVeyor build
|
|/ /
| |
| |
| |
| |
| | |
Python 2.6 cannot run packages with "-m", and you cannot upgrade pip
while running the pip.exe script. So we must open-code the Python 2.7+
behaviour of the -m option.
|
|\ \
| |/ |
|
| | |
|
|\ \ |
|
| |\ \
| | | |
| | | | |
fix typos
|
| | | | |
|
| |\ \ \
| | | | |
| | | | | |
Enable caching of libraries in build step
|
| | | | | |
|
|\ \ \ \ \
| | |_|_|/
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On "Windows NT or later", you cannot reopen a file created by
`tempfile.NamedTemporaryFile` while the file-like object is still
active.
See
https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Python 2.6 introduced support for class decorators, but returning 'None'
causes the Python 2.6 unittest module to fail an assertion.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Per https://pypi.python.org/pypi/Cython, when a platform doesn't have a
wheel, it's better for CI systems to use an uncompiled version.
|
| | | | |
| | | | |
| | | | |
| | | | | |
See d0125dc and https://bugs.python.org/issue27973
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Without the newlines, the command sequence is wrapped back into one
line.
|
| |/ / /
|/| | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
fix html.SelectElement stripping whitespace from <option> values
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
This is a fix for bug #1665241, as the original fix for #399249
in 0b14af50fdc878199f8a3be3053eef42d3e9851f should not apply to
option values, which are supposed to be passed through as-is.
|
|\ \ \
| |_|/
|/| | |
Skip TempPathXmlFileTestCase for the incremental XML API
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On "Windows NT or later", you cannot reopen a file created by
`tempfile.NamedTemporaryFile` while the file-like object is still
active.
See
https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
|
|/ /
| |
| |
| |
| | |
Python 2.6 introduced support for class decorators, but returning 'None'
causes the Python 2.6 unittest module to fail an assertion.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Two more ways to change output method temporarily
|
| |\ \
| | | |
| | | |
| | | |
| | | | |
# Conflicts:
# src/lxml/serializer.pxi
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
context manager without having to write an element
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix POST form submission for Python 3
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In Python 3, urlencode() returns Unicode string; but urlopen() wants
only bytes in data, so it need to be encoded first.
Fixes:
>>> form = lxml.html.fromstring('<form method="POST">', base_url='http://localhost')
>>> lxml.html.submit_form(form)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../lxml/html/__init__.py", line 1119, in submit_form
return open_http(form.method, url, values)
File ".../lxml/html/__init__.py", line 1140, in open_http_urllib
return urlopen(url, data)
File ".../urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File ".../urllib/request.py", line 464, in open
req = meth(req)
File ".../urllib/request.py", line 1183, in do_request_
raise TypeError(msg)
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix AppVeyor builds for Windows
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Per https://pypi.python.org/pypi/Cython, when a platform doesn't have a
wheel, it's better for CI systems to use an uncompiled version.
|
| | | | |
| | | | |
| | | | |
| | | | | |
See d0125dc and https://bugs.python.org/issue27973
|