summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Backporting urlparse.py:1.34, test_urlparse.py:1.8:Guido van Rossum2002-10-142-1/+6
| | | | | Fix for 1.33: urlsplit() should only add '//' if scheme != ''. [SF bug 620705]
* Backport bugfix microrelease of email 2.4.3 from cvs trunk.Barry Warsaw2002-10-145-53/+109
|
* Add finditer to __all__ (when defining it at all).Guido van Rossum2002-10-141-0/+1
| | | | SF bug 585882. Will forward-port.
* Backport 1.34.Neal Norwitz2002-10-111-2/+2
| | | | | | | SF # 539360, webbrowser.py and konqueror, by Andy McKay Fix Konqueror so it can start when calling open(). The assert needed to be on the raw URL, not openURL 'url...'
* Use \n as line separator in stead of \r\n, which causes problems in ↵Jack Jansen2002-10-102-10/+10
| | | | MacPython 2.2.
* Backport of 1.7:Jack Jansen2002-10-101-4/+4
| | | | | Reorganized so the test is skipped if os.popen() doesn't exist (in stead of fail ing).
* Backport email 2.4.2 changes from Python 2.3.Barry Warsaw2002-10-104-6/+44
|
* TheTim Peters2002-10-081-1/+1
| | | | | | | | | | | | | | list(xrange(sys.maxint / 4)) test. Changed 4 to 2. The belief is that this test intended to trigger a bit of code in listobject.c's NRESIZE macro that's looking for arithmetic overflow. As written, it doesn't achieve that, though, and leaves it up to the platform realloc() as to whether it wants to allocate 2 gigabytes. Some platforms say "sure!", although they don't appear to mean it, and disaster ensues. Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow test instead, leaving the platform realloc() out of it.
* Fix some code that was added to the r22-maint branch to allow it to work withFred Drake2002-10-083-7/+88
| | | | | | arbitrary versions of Expat. Not applicable to Python 2.3, which will incorporate an Expat that does not need this crutch.
* Put a do-nothing set_python_build() back.Michael W. Hudson2002-10-081-0/+5
|
* Backport, at the reqest of Kevin Jacobs:Guido van Rossum2002-10-071-0/+22
| | | | | | | | | | | - Changed new-style class instantiation so that when C's __new__ method returns something that's not a C instance, its __init__ is not called. [SF bug #537450] XXX This is arguably a semantic change, but it's hard to imagine a reason for wanting to depend on the old behavior. If problems with this are reported within a week of the release of 2.2.2 beta 1, we may revert this change.
* Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync itBarry Warsaw2002-10-071-1/+1
| | | | with the standalone mimelib package.
* Backport 1.68:Guido van Rossum2002-10-071-37/+36
| | | | | | Extend stripid() to handle strings ending in more than one '>'. Add resolve() to handle looking up objects and names (fix SF bug 586931). Add a nicer error message when given a filename that doesn't exist.
* openfile(): Go back to opening the files in text mode. This undoesBarry Warsaw2002-10-072-2/+2
| | | | | | | | | the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there. This and the Parser.py patch will be forward ported into Python 2.3 and email 2.5.
* _parsebody(): Use get_content_type() instead of the deprecatedBarry Warsaw2002-10-071-5/+6
| | | | | | | get_type(). Also, one of the regular expressions is constant so might as well make it a module global. And, when splitting up digests, handle lineseps that are longer than 1 character in length (e.g. \r\n).
* Backport 1.63:Guido van Rossum2002-10-071-2/+8
| | | | | | In both spilldata() functions, pretend that the docstring for non-callable objects is always None. This makes for less confusing output and fixes the problem reported in SF patch #550290.
* Darn. Fix stupid typo in whichmodule() backport.Guido van Rossum2002-10-071-1/+1
|
* Backport 1.70 and 1.71 (which really go together):Guido van Rossum2002-10-071-10/+11
| | | | | | | | | | | | 1.70: whichmodule() should skip dummy package entries in sys.modules. This fixes the charming, but unhelpful error message for >>> pickle.dumps(type.__new__) Can't pickle <built-in method __new__ of type object at 0x812a440>: it's not the same object as datetime.math.__new__ 1.71: Fiddle comments and variable names in whichmodule().
* Backport:Michael W. Hudson2002-10-071-0/+16
| | | | | | | | | | | | | | 2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262 2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162 2002/08/11 12:23:03 lemburg Misc/NEWS 1.461 2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65 2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39 Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level. u'%c' will now raise a ValueError in case the argument is an integer outside the valid range of Unicode code point ordinals. Closes SF bug #593581.
* A couple of fixes for the compiler package:Michael W. Hudson2002-10-072-4/+7
| | | | | | | | | * always write the mtime to a .pyc in little endian format * ensure class's docstrings get attached to the class, not the enclosing scope! Rather more fixes are needed for the trunk; these will be done in due course.
* Backport fdrake'sMichael W. Hudson2002-10-071-14/+22
| | | | | | | | | | | | | | | | | | | | | | revision 1.88 of setup.py revision 1.46 of Lib/distutils/sysconfig.py When using a Python that has not been installed to build 3rd-party modules, distutils does not understand that the build version of the source tree is needed. This patch fixes distutils.sysconfig to understand that the running Python is part of the build tree and needs to use the appropriate "shape" of the tree. This does not assume anything about the current directory, so can be used to build 3rd-party modules using Python's build tree as well. This is useful since it allows us to use a non-installed debug-mode Python with 3rd-party modules for testing. It as the side-effect that set_python_build() is no longer needed (the hack which was added to allow distutils to be used to build the "standard" extension modules). This closes SF patch #547734.
* Patch #619493: Prefer rpmbuild over rpm if available.Martin v. Löwis2002-10-071-0/+3
|
* This has no hope of working under -O. Skip it then instead of failing.Tim Peters2002-10-071-0/+3
|
* Whitespace normalization.Tim Peters2002-10-0718-55/+53
|
* Backport 1.52:Raymond Hettinger2002-10-061-2/+4
| | | | SF # 555779, import user doesn't work with CGIs
* Aargh! The 2.3 version of this file requires "from test.test_supportGuido van Rossum2002-10-061-1/+1
| | | | | import run_suite", but the 2.2.2 version requires "from test_support import run_suite" ... :-(
* Patch #572031: AUTH method LOGIN for smtplib.Martin v. Löwis2002-10-061-7/+38
|
* Backport:Guido van Rossum2002-10-061-2/+4
| | | | | Make sure the email test suite can be run both stand-alone and under supervision of regrtest.py.
* Backport 1.45:Raymond Hettinger2002-10-061-1/+11
| | | | Allow abspath to still do something sensisble if the nt module can not be imported.
* Backport 1.45:Raymond Hettinger2002-10-061-1/+2
| | | | | | Fix a problem in site.py which triggers in case sys.path is empty. Bugfix candidate for 2.2.2.
* Backport 1.12 and 1.13 and normalize whitespace (remove formfeeds):Raymond Hettinger2002-10-061-15/+12
| | | | | | | | | | | SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used Note: There is a TBD (aka FIXME) for how best to handle the refused addresses. smtp_RCPT(): Removed a somewhat embarrassing debugging line, found by Scot Stevenson. Could be a bug fix candidate, but probably doesn't matter much unless a certain blue-nosed cat suddenly becomes corporeal and starts emailing some stmp.py (sic) fronted mailer.
* Backport 1.60 and 1.62:Raymond Hettinger2002-10-061-4/+4
| | | | | | | | | | Patch #586999: Fix multiline string in sendmail example. smptlib did not handle empty addresses. The problem was that it expected rfc822.parseaddr() to return None upon a parse failure. The actual, documented return value for a parse failure is (None, None). Closes SF bug 602029.
* Backport 1.151 and 1.152:Raymond Hettinger2002-10-061-1/+1
| | | | | Treat file://localhost/ as local too (same as file:/ and file:///). Fixes #607789, bugfix candidate.
* Backport 1.17:Raymond Hettinger2002-10-061-1/+4
| | | | Ignore IOError exceptions when writing the message.
* Backport 1.7:Raymond Hettinger2002-10-061-0/+2
| | | | SF # 555779, import user doesn't work with CGIs
* Backport 1.28 and 1.29:Raymond Hettinger2002-10-061-0/+2
| | | | | SF #515026, delete global variable that was apparently used only in a for loop.
* Backport 1.33 (omitting the deprecation warning but keeping the deprecationRaymond Hettinger2002-10-051-0/+77
| | | | | | | comment): Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings.
* regrtest expects TestSkipped to come from test_support notBarry Warsaw2002-10-041-1/+3
| | | | test.test_support
* Backporting of email 2.4 from Python 2.3. Many newly added modules,Barry Warsaw2002-10-0415-1524/+1059
| | | | | | | | some updated modules, updated documentation, and updated tests. Note that Lib/test/regrtest.py added test_email_codecs to the expected skips for all platforms. Also note that test_email_codecs.py differs slightly from its Python 2.3 counterpart due to the difference in package location for TestSkipped.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-10-049-0/+3645
| | | | 'release22-maint'.
* use types.StringTypes instead of (str, unicode)Skip Montanaro2002-10-031-1/+2
|
* Python 2.2 doesn't have basestring.Skip Montanaro2002-10-031-1/+1
|
* Fix for the recursion_level bug Armin Rigo reported in sfMichael W. Hudson2002-10-021-0/+216
| | | | | | | patch #617312, both on the trunk and the 22-maint branch. Also added a test case, and ported the test_trace I wrote for HEAD to 2.2.2 (with all those horrible extra 'line' events ;-).
* Patch #615069: Fix build problems on SCO Open Server 5.Martin v. Löwis2002-09-301-1/+58
|
* Backport loewis' 1.12:Michael W. Hudson2002-09-301-4/+9
| | | | Patch #581705: Catch OSError, termios.error in spawn. 2.2 bugfix candidate.
* Allow internal whitespace in keys.Fred Drake2002-09-272-3/+10
| | | | Closes SF bug #583248.
* backport patch resulting from discussion on <http://python.org/sf/612111>.Skip Montanaro2002-09-261-1/+1
|
* Backport of 1.15:Guido van Rossum2002-09-261-1/+1
| | | | Oops, must convert hyphens to underscores in keys of aliases dict.
* Previous fix depended on the "code cleanup and general bug fix patch" alreadyFred Drake2002-09-261-62/+57
| | | | | being applied. This is portion of that patch that does not add new functionality.
* has_option(): Use the option name transform consistently.Fred Drake2002-09-262-0/+6
| | | | Closes SF bug #561822.