summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* formatdate(): The calculation of the minutes part of the zone wasBarry Warsaw2001-11-191-1/+2
| | | | | | | | incorrect for "uneven" timezones. This algorithm should work for even timezones (e.g. America/New_York) and uneven timezones (e.g. Australia/Adelaide and America/St_Johns). Closes SF bug #483231.
* test_formatdate(): A test that has a mild hope of working on Mac,Barry Warsaw2001-11-181-1/+11
| | | | | which has a different epoch than *nix. Jack may need to twiddle the details.
* Fix parsing of parameters from a URL; urlparse() did not check that it onlyFred Drake2001-11-161-34/+46
| | | | | | | | split parameters from the last path segment. Introduces two new functions, urlsplit() and urlunsplit(), that do the simpler job of splitting the URL without monkeying around with the parameters field, since that was not being handled properly. This closes bug #478038.
* Two changes:Barry Warsaw2001-11-151-8/+6
| | | | | | | | | | | | | | load_inst(): Implement the security hook that cPickle already had. When unpickling callables which are not classes, we look to see if the object has an attribute __safe_for_unpickling__. If this exists and has a true value, then we can call it to create the unpickled object. Otherwise we raise an UnpicklingError. find_class(): We no longer mask ImportError, KeyError, and AttributeError by transforming them into SystemError. The latter is definitely not the right thing to do, so we let the former three exceptions simply propagate up if they occur, i.e. we remove the try/except!
* More simple test cases for mixed classic+new multiple inheritance.Tim Peters2001-11-141-0/+35
|
* Changing diapers reminded Guido that he wanted to allow for some measureTim Peters2001-11-141-8/+47
| | | | | | of multiple inheritance from a mix of new- and classic-style classes. This is his patch, plus a start at some test cases from me. Will check in more, plus a NEWS blurb, later tonight.
* Removed print that executes only on Unix boxes; that made it impossibleTim Peters2001-11-131-2/+2
| | | | to have single "expected output" file.
* CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.Tim Peters2001-11-132-13/+138
| | | | | | | | | | This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
* Don't munge __debug__ and leave it that way.Jeremy Hylton2001-11-131-0/+2
|
* Whitespace normalization.Tim Peters2001-11-135-8/+6
|
* A specific test for bug #481221, getaddrlist() failing on longBarry Warsaw2001-11-131-0/+8
| | | | addresses. Commented out because it still takes too long to run.
* Fix for bug #481221, getaddrlist() failing on long addresses.Barry Warsaw2001-11-131-4/+8
|
* Committing the second part of patch #480902, an improved test suiteBarry Warsaw2001-11-131-31/+66
| | | | | for dumbdbm.py, by Skip Montanaro. The first half of Skip's patch has been postponed until Py2.3 since it adds new features.
* Add tests for bug #478115, parsedate_tz() IndexError when a Date:Barry Warsaw2001-11-132-0/+11
| | | | field exists with an empty value.
* 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