summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* parsedate_tz(): If data is false, return None. Fixes bug #478115,Barry Warsaw2001-11-131-0/+2
| | | | IndexError when a Date: field exists with an empty value.
* The libraries argument was completely ignored, fixed. Reported byJack Jansen2001-11-101-1/+2
| | | | Tom Loredo.
* getnameinfo() appears to raise socket.error instead ofBarry Warsaw2001-11-091-1/+1
| | | | | socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish Linux system.
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+0
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+13
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* Fiddle with new test cases -- verify that we get a sensible errorJeremy Hylton2001-11-091-4/+7
| | | | | | | message for bad mode argument -- so that it doesn't fail on Windows. It's hack. We know that errno is set to 0 in this case on Windows, so check for that specifically.
* test_formatdate(): Dang. Typo.Barry Warsaw2001-11-091-1/+1
|
* test_formatdate(): Don't do the localtime test if we don't haveBarry Warsaw2001-11-091-10/+12
| | | | strptime() -- I'm too lazy to code it otherwise.
* test_formatdate(): A test for email.Utils.formatdate().Barry Warsaw2001-11-091-0/+16
|
* Forgot to import time.Barry Warsaw2001-11-091-0/+1
|
* formatdate(): A better docstring.Barry Warsaw2001-11-091-4/+7
|
* formatdate(): An implementation to replace the one borrowed fromBarry Warsaw2001-11-091-1/+37
| | | | | | | | | | rfc822.py. The old rfc822.formatdate() produced date strings using obsolete syntax. The new version produces the preferred RFC 2822 dates. Also, an optional argument `localtime' is added, which if true, produces a date relative to the local timezone, with daylight savings time properly taken into account.
* Fix SF bug 468948 & 451295: urllib2 authentication problemsJeremy Hylton2001-11-091-28/+12
| | | | | | | | | | | | | | | | | | | Fix contributed by Jeffrey C. Ollie. I haven't tested the fix because the situation is non-trivial to reproduce. The basic solution is to get rid of the __current_realm attribute of authentication handlers. Instead, prevent infinite retries by checking for the presence of an Authenticate: header in the request object that exactly matches the Authenticate: header that would be added. The problem prevent authentication from working correctly in the presence of retries. Ollie mentioned that digest authentication has the same problem and I applied the same solution there.
* Fix SF bug #479186: compiler generates bad code for "del"Jeremy Hylton2001-11-091-0/+1
| | | | | | | Fix by Neil Schemenauer. Visit the Subscript node when trying to find the operation for a statement. XXX Not sure if there are other nodes that should be visited.
* Fix SF buf #476953: Bad more for opening file gives bad msg.Jeremy Hylton2001-11-091-0/+11
| | | | | | If fopen() fails with EINVAL it means that the mode argument is invalid. Return the mode in the error message instead of the filename.
* A better new, unique objectJeremy Hylton2001-11-091-1/+1
|
* Merge directory chooser into tkFileDialog.Martin v. Löwis2001-11-082-54/+18
|
* Clean up one comment, fix typos in others.Fred Drake2001-11-081-7/+7
|
* Patch #478654: Expose tk_chooseDirectory.Martin v. Löwis2001-11-071-4/+11
| | | | Also delegate kw arguments through ** calls.
* Add a regression test for SF bug #478536: If a value cannot be weaklyFred Drake2001-11-061-1/+5
| | | | | referenced, WeakKeyDictionary.has_key() should return 0 instead of raising TypeError.
* WeakKeyDictionary.has_key(): If the key being tested is not weaklyFred Drake2001-11-061-1/+5
| | | | | | referencable (weakref.ref() raises TypeError), return 0 instead of propogating the TypeError. This closes SF bug #478536; bugfix candidate.
* A couple more test cases to ensure join() doesn't add an "extra" backslashTim Peters2001-11-051-0/+2
| | | | in the presence of empty-string arguments.
* SF bug 478425: Change in os.path.join (ntpath.py)Tim Peters2001-11-052-0/+14
| | | | | | ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1. Impossible to guess what was ever *intended*, but since split('a\\') produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back.
* walk(): Fix docstring; traversal is depth-first. Closes mimelib bugBarry Warsaw2001-11-051-1/+1
| | | | #477864.
* Add regression test for SF bug #476616 -- make sure copy of a derived classFred Drake2001-11-051-0/+4
| | | | does not share data with the original.
* copy(): Make sure the copy of a derived class cannot share the data of theFred Drake2001-11-051-1/+8
| | | | | | original by replacing self.data temporarily, then using the update() method on the new mapping object to populate it. This closes SF bug #476616.
* new config implementationSteven M. Gava2001-11-042-55/+40
|
* further config system workSteven M. Gava2001-11-044-17/+56
|
* Two bug fixes for problems reported by Sverre:Barry Warsaw2001-11-041-1/+6
| | | | | | | | | __getaddr(): Watch out for empty addresses that can happen when something like "MAIL FROM:<CR>" is received. This avoids the IndexError and rightly returns an SMTP syntax error. parseargs(): We didn't handle the 2-arg case where both the localspec and the remotespec were provided on the command line.
* Improved error msg when a symbolic group name is redefined. Added docsTim Peters2001-11-031-2/+4
| | | | | | and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F did fix a longstanding bug here, but the fix can cause code to raise an exception that previously worked by accident.
* added ability to set hilightthicknessSteven M. Gava2001-11-031-3/+9
|
* further config system workSteven M. Gava2001-11-032-112/+74
|
* more work to support new config systemSteven M. Gava2001-11-033-87/+121
|
* Patch #471120: Improved doc strings and new wrappers.Martin v. Löwis2001-11-021-45/+382
|
* Correct getnameinfo refcounting and tuple parsing. Fixes #476648.Martin v. Löwis2001-11-021-0/+14
|
* [Patch #477336] Add an extensive PyUnit based testsuite for the hmacAndrew M. Kuchling2001-11-021-1/+108
| | | | module
* [Patch #477336] Make hmac.py match PEP247, and fix the copy method() so thatAndrew M. Kuchling2001-11-021-23/+13
| | | | it works
* [Patch #476612] Add test suite for PEP247 complianceAndrew M. Kuchling2001-11-021-0/+50
|
* Fix comment typoAndrew M. Kuchling2001-11-021-1/+1
|
* SF bug #476912: flag repeated use of the same groupname asFredrik Lundh2001-11-021-1/+3
| | | | the error it really is (and always has been)
* Brute-force performance hackery; buys back about 20% of the time forFred Drake2001-11-011-121/+165
| | | | saferepr(), a bit less for pformat().
* Documentation patches by bsherwoodChui Tey2001-10-311-4/+13
|
* SF patch #474485: pydoc generates some bad html, from Rich Salz.Tim Peters2001-10-311-5/+5
|
* Huh. In an effort to be less thorough <wink>, seems I checked in a newTim Peters2001-10-311-1/+1
| | | | test that wouldn't even compile,
* Fix bad bug in structseq slicing (NULL pointers in result). Reported byTim Peters2001-10-303-5/+21
| | | | | | Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).
* /F observes that we need an else: in connect()Jeremy Hylton2001-10-301-1/+2
|
* Whitespace normalization.Tim Peters2001-10-304-5/+5
|
* To cover a recent checkin, added a test to ensure dir(None) == dir(Ellipsis).Tim Peters2001-10-301-0/+4
|
* Just changed some continued-line indentation to read better, due toTim Peters2001-10-301-3/+3
| | | | the earlier s/dictionary/dict/ change.
* Fix SF bug #456386: test_commands regression failure (Andrew Dalke)Guido van Rossum2001-10-301-1/+1
| | | | | | | | | test_commands does not work on IRIX It assumes the output of "ls /bin/ls" is a line that starts with a '-'. On IRIX that file is a symbolic link, so the first character is an l. This causes test_getstatus to fail.