summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* #1486713: Add a tolerant mode to HTMLParser.R. David Murray2010-12-034-24/+139
| | | | | | | | | | | | The motivation for adding this option is that the the functionality it provides used to be provided by sgmllib in Python2, and was used by, for example, BeautifulSoup. Without this option, the Python3 version of BeautifulSoup and the many programs that use it are crippled. The original patch was by 'kxroberto'. I modified it heavily but kept his heuristics and test. I also added additional heuristics to fix #975556, #1046092, and part of #6191. This patch should be completely backward compatible: the behavior with the default strict=True is unchanged.
* Fix #10554. Added context manager support to Popen objects.Brian Curtin2010-12-034-1/+65
| | | | | | Added a few common Popen uses to the tests like we've done for a few other instances of adding context managers. Eventually the entire test suite could be converted to use the context manager format.
* Update the itertools.accumulate() docs.Raymond Hettinger2010-12-032-5/+5
|
* Remove test/__main__.py until runpy tests can be fixedMichael Foord2010-12-031-40/+0
|
* Simplify the signature for itertools.accumulate() to match numpy. Handle ↵Raymond Hettinger2010-12-033-37/+31
| | | | one item iterable the same way as min()/max().
* Set test.regrtest.TEMPDIR correctly when run with 'python -m test'Michael Foord2010-12-031-2/+4
|
* code styleBenjamin Peterson2010-12-031-5/+10
|
* Initial implementation of Lib/test/__main__.py so we can run tests with ↵Michael Foord2010-12-031-0/+38
| | | | 'python -m test'
* Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵Michael Foord2010-12-034-4/+7
| | | | failure messages by default
* Re-add accidentally removed line.Georg Brandl2010-12-021-0/+1
|
* Fix wrong test code in test_csv (#10602)Éric Araujo2010-12-021-12/+7
|
* Issue9915: speeding up sorting with a keyDaniel Stutzbach2010-12-022-225/+240
|
* #8989: add 'domain' keyword to make_msgid.R. David Murray2010-12-025-6/+23
| | | | Patch by Adrian von Bidder.
* Fix #9333. Expose os.symlink on Windows only when usable.Brian Curtin2010-12-0212-79/+126
| | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
* #7475: add (un)transform method to bytes/bytearray and str, add back codecs ↵Georg Brandl2010-12-0217-29/+900
| | | | that can be used with them from Python 2.
* #10597: fix Py_SetPythonHome docs by pointing to where the meaning of ↵Georg Brandl2010-12-021-2/+3
| | | | PYTHONHOME is already documented.
* Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)David Malcolm2010-12-021-1/+1
|
* Fix-up documentation of makedirs().Georg Brandl2010-12-021-5/+5
|
* Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' ↵Terry Reedy2010-12-025-11/+58
| | | | exception. Patch by Ray Allen.
* Neaten-up random module docs.Raymond Hettinger2010-12-021-30/+31
|
* Issue #9573: os.fork now works when triggered as a side effect of import ↵Nick Coghlan2010-12-023-5/+57
| | | | (the wisdom of actually relying on this remains questionable!)
* #10464: fix netrc handling of lines with embedded '#" characters.R. David Murray2010-12-024-6/+23
| | | | Patch by Xuanji Li.
* Add an example to the random docs.Raymond Hettinger2010-12-021-0/+26
|
* Fix markupRaymond Hettinger2010-12-021-10/+11
|
* Issue4335: Added a test for inspect.getsourcelines with a module without EOL ↵Alexander Belopolsky2010-12-021-8/+29
| | | | at EOF.
* With Raymond's approval added a paragraph describing Unicode 6.0.0 changes. ↵Alexander Belopolsky2010-12-021-0/+17
| | | | Not reST formatted.
* Clean-up last update (missing comma, unnecessary spacing change, spurious ↵Raymond Hettinger2010-12-011-434/+434
| | | | backtick).
* Add itertools.accumulate().Raymond Hettinger2010-12-011-441/+449
|
* Add itertools.accumulate().Raymond Hettinger2010-12-013-0/+179
|
* Reverted unintended change from r86916Alexander Belopolsky2010-12-011-7/+0
|
* Issue #4113: Added custom __repr__ method to functools.partial.Alexander Belopolsky2010-12-014-1/+82
|
* Fix some markup and style in the unittest docs.Georg Brandl2010-12-011-22/+22
|
* #10594: fix parameter names in PyList API docs.Georg Brandl2010-12-011-3/+3
|
* Add missing word, and add a better reference to the actual function.Georg Brandl2010-12-011-3/+4
|
* Add recipe to itertools doc.Raymond Hettinger2010-12-011-0/+8
|
* Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.Raymond Hettinger2010-12-013-25/+78
|
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-0121-186/+203
| | | | assertRaisesRegex.
* Fix test failure in debug builds and add NEWS entry for r86908Ezio Melotti2010-12-012-3/+5
|
* #10535: Enable silenced warnings in unittest by defaultEzio Melotti2010-12-018-22/+228
|
* Doc and docstring nits.Raymond Hettinger2010-12-012-2/+6
|
* Fix #10591. Fix test_os for refleak runs.Brian Curtin2010-11-301-2/+1
| | | | Split a common setUp/tearDown into the appropriate parts.
* Issue #8685: Speed up set difference `a - b` when source set `a` isAntoine Pitrou2010-11-302-7/+25
| | | | much larger than operand `b`. Patch by Andrew Bennetts.
* Add link to specification.Raymond Hettinger2010-11-301-0/+1
|
* Documentation nits.Raymond Hettinger2010-11-301-3/+3
|
* Add example, tighten text, and minor clean-ups.Raymond Hettinger2010-11-304-37/+50
|
* Fix typo: "ofbytes" should be "of bytes"Daniel Stutzbach2010-11-301-3/+3
|
* Add some internal links.Raymond Hettinger2010-11-302-2/+3
|
* Issue #9598: untabify.py will now respect encoding cookie in the files it ↵Alexander Belopolsky2010-11-301-3/+4
| | | | processes
* Let’s keep “throw” for the generator method and use “raise” elsewhere.Éric Araujo2010-11-304-4/+4
|
* Issue #10552: Partially fixed a sort error in Tools/unicode/gencodec.pyAlexander Belopolsky2010-11-301-7/+10
|