summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1 from kovidgoyal/LP1595781_adopt_external_docLP1595781_adopt_external_docscoder2017-02-192-0/+108
|\ | | | | Add tests for external document adoption
| * Add tests for external document adoptionKovid Goyal2017-02-191-3/+79
| |
| * Add type checking for the capsuleKovid Goyal2017-02-192-0/+32
| | | | | | | | adopt_external_document() should type check its argument
* | explain that transferring document ownership using ↵Stefan Behnel2017-02-191-0/+3
|/ | | | "adopt_external_document()" forbids further modifications by external code
* Implement new API function "adopt_external_document()" that accepts a ↵Stefan Behnel2017-02-184-0/+108
| | | | PyCapsule with a libxml2 document pointer and wraps it in an lxml ElementTree
* merge lxml-3.7 branch into masterStefan Behnel2017-02-183-5/+9
|\
| * prepare release of lxml 3.7.3Stefan Behnel2017-02-183-5/+9
| |
* | merge lxml-3.7 branch into masterStefan Behnel2017-02-180-0/+0
|\ \ | |/
| * Add Python 2.6 to the AppVeyor buildPaul "TBBle" Hampson2017-02-141-1/+2
| | | | | | | | | | | | 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.
* | Merge pull request #226 from TBBle/appveyor-python26scoder2017-02-181-1/+2
|\ \ | | | | | | Add Python 2.6 to the AppVeyor build
| * | Add Python 2.6 to the AppVeyor buildPaul "TBBle" Hampson2017-02-171-1/+2
|/ / | | | | | | | | | | 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.
* | merge lxml-3.7 branch into masterStefan Behnel2017-02-170-0/+0
|\ \ | |/
| * fix typosJakub Wilk2017-02-142-3/+3
| |
* | mergeStefan Behnel2017-02-173-6/+9
|\ \
| * \ Merge pull request #227 from jwilk/spellingscoder2017-02-172-3/+3
| |\ \ | | | | | | | | fix typos
| | * | fix typosJakub Wilk2017-02-142-3/+3
| | | |
| * | | Merge pull request #225 from mhils/local-lib-copiesscoder2017-02-171-3/+6
| |\ \ \ | | | | | | | | | | Enable caching of libraries in build step
| | * | | enable caching of libraries in build stepMaximilian Hils2017-02-121-3/+6
| | | | |
* | | | | merge lxml-3.7 branch into masterStefan Behnel2017-02-170-0/+0
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Skip TempPathXmlFileTestCase for the incremental XML APIPaul "TBBle" Hampson2017-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Support class decorators in Python 2.6 @skipIf fallbackPaul "TBBle" Hampson2017-02-131-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Python 2.6 introduced support for class decorators, but returning 'None' causes the Python 2.6 unittest module to fail an assertion.
| * | | | clean up appveyor build script some moreStefan Behnel2017-02-111-10/+7
| | | | |
| * | | | Don't compile Cython from source on AppVeyorPaul "TBBle" Hampson2017-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Apply Python FTP download workaround to Win32 libsPaul "TBBle" Hampson2017-02-111-0/+1
| | | | | | | | | | | | | | | | | | | | See d0125dc and https://bugs.python.org/issue27973
| * | | | Insert missing newlines in AppVeyor scriptsPaul "TBBle" Hampson2017-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Without the newlines, the command sequence is wrapped back into one line.
* | | | | changelogStefan Behnel2017-02-171-0/+7
| |/ / / |/| | |
* | | | Merge pull request #228 from advarisk/fix-select-option-valuesscoder2017-02-172-20/+31
|\ \ \ \ | |_|_|/ |/| | | fix html.SelectElement stripping whitespace from <option> values
| * | | add tests for bug #1665241Ashish Kulkarni2017-02-161-1/+25
| | | |
| * | | fix html.SelectElement stripping whitespace from <option> valuesAshish Kulkarni2017-02-161-19/+6
|/ / / | | | | | | | | | | | | | | | 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.
* | | Merge pull request #224 from TBBle/skip-reopen-test-on-windowsscoder2017-02-132-4/+9
|\ \ \ | |_|/ |/| | Skip TempPathXmlFileTestCase for the incremental XML API
| * | Skip TempPathXmlFileTestCase for the incremental XML APIPaul "TBBle" Hampson2017-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Support class decorators in Python 2.6 @skipIf fallbackPaul "TBBle" Hampson2017-02-131-4/+8
|/ / | | | | | | | | Python 2.6 introduced support for class decorators, but returning 'None' causes the Python 2.6 unittest module to fail an assertion.
* | discontinue support for CPython 3.2 - may or may not work in the futureStefan Behnel2017-02-111-1/+1
| |
* | make test work in Py2.6Stefan Behnel2017-02-111-4/+2
| |
* | merge lxml-3.7 branch into masterStefan Behnel2017-02-111-6/+6
|\ \ | |/
| * changelogStefan Behnel2017-02-111-0/+3
| |
| * changelogStefan Behnel2017-02-111-0/+3
| |
* | changelogStefan Behnel2017-02-111-0/+3
| |
* | Merge pull request #220 from plq/method-ctxmanagerscoder2017-02-112-5/+93
|\ \ | | | | | | Two more ways to change output method temporarily
| * \ Merge remote-tracking branch 'lxml/master' into method-ctxmanagerBurak Arslan2017-02-0616-121/+374
| |\ \ | | | | | | | | | | | | | | | | # Conflicts: # src/lxml/serializer.pxi
| * | | check and test for _IncrementalWriter.method() ctx manager misuseBurak Arslan2017-01-102-1/+40
| | | |
| * | | implement _IncrementalWriter.method() for changing output method with a ↵Burak Arslan2017-01-082-1/+35
| | | | | | | | | | | | | | | | context manager without having to write an element
| * | | Add method keyword to _IncrementalWriter.element()Burak Arslan2017-01-052-4/+22
| | | |
* | | | changelogStefan Behnel2017-02-111-0/+6
| | | |
* | | | Merge pull request #222 from jwilk/post-form-submissionscoder2017-02-111-0/+2
|\ \ \ \ | | | | | | | | | | Fix POST form submission for Python 3
| * | | | Fix POST form submission for Python 3Jakub Wilk2017-02-081-0/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | clean up appveyor build script some moreStefan Behnel2017-02-111-10/+7
| | | |
* | | | Merge pull request #223 from TBBle/appveyorscoder2017-02-112-1/+5
|\ \ \ \ | | | | | | | | | | Fix AppVeyor builds for Windows
| * | | | Don't compile Cython from source on AppVeyorPaul "TBBle" Hampson2017-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Apply Python FTP download workaround to Win32 libsPaul "TBBle" Hampson2017-02-111-0/+1
| | | | | | | | | | | | | | | | | | | | See d0125dc and https://bugs.python.org/issue27973