Commit Graph

46053 Commits

Author SHA1 Message Date
Antoine Pitrou 9e7d6e598c Merged revisions 87653-87655 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87653 | antoine.pitrou | 2011-01-02 23:06:53 +0100 (dim., 02 janv. 2011) | 3 lines

  Clarify behaviour of close() and shutdown() on sockets.
........
  r87654 | antoine.pitrou | 2011-01-02 23:09:27 +0100 (dim., 02 janv. 2011) | 3 lines

  Add a shutdown() call in the server example.
........
  r87655 | antoine.pitrou | 2011-01-02 23:12:22 +0100 (dim., 02 janv. 2011) | 3 lines

  Some nits.
........
2011-01-02 22:39:10 +00:00
Antoine Pitrou cb40277ea4 Merged revisions 87646 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87646 | antoine.pitrou | 2011-01-02 21:45:21 +0100 (dim., 02 janv. 2011) | 3 lines

  Fix bad quoting in r87639. Caught by Arfrever.
........
2011-01-02 20:51:34 +00:00
Antoine Pitrou da4a5f0b37 Fix indentation 2011-01-02 20:06:12 +00:00
Antoine Pitrou 01a196a076 Typo 2011-01-02 20:05:11 +00:00
Antoine Pitrou b061461596 Issue #4662: os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3k
DeprecationWarning.
2011-01-02 20:04:52 +00:00
Antoine Pitrou f11d1832ec Merged revisions 87639 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87639 | antoine.pitrou | 2011-01-02 20:34:03 +0100 (dim., 02 janv. 2011) | 4 lines

  Issue #10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
  and DragonFly BSD.  Patch by Nicolas Joly.
........
2011-01-02 19:37:45 +00:00
Georg Brandl d823bdcb0e #10804: fix copy-paste error when checking assigned fields for NULL. 2011-01-02 14:20:16 +00:00
Raymond Hettinger 8ebebd8f7e Raymond-Hettingers-MacBook-Pro:py27 raymondhettinger$ cat svn-commit.tmp
Backport r87594 r87611 and r87612 so that OrderedDict subclassing behavior
better matches dict subclassing (i.e. adding __missing__ works and
extending/overriding the update() methods doesn't break __init__()).
2011-01-02 01:03:26 +00:00
Benjamin Peterson fe0263d36f Merged revisions 87607 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87607 | benjamin.peterson | 2011-01-01 08:28:31 -0600 (Sat, 01 Jan 2011) | 1 line

  update copyright to 2011
........
2011-01-01 14:30:24 +00:00
Terry Reedy 247327a27e Issue 6285: catch missing IDLE help file. Backport from 3.2. 2011-01-01 02:32:46 +00:00
Terry Reedy c0b3544268 Issue 10789: Correct threading.Lock.acquire signature. 2011-01-01 00:36:18 +00:00
R. David Murray c45d7996db Merged revisions 83089,87590 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83089 | brett.cannon | 2010-07-23 09:54:14 -0400 (Fri, 23 Jul 2010) | 4 lines

  Test calendar.monthrange.

  Closes issue 9342. Thanks John Chandler for the patch.
........
  r87590 | r.david.murray | 2010-12-31 14:21:14 -0500 (Fri, 31 Dec 2010) | 4 lines

  #9361: add some tests for calendar.leapdays

  Patch by John Chandler.
........
2010-12-31 19:31:48 +00:00
R. David Murray 5dd32a2df2 Blocked revisions 87567 via svnmerge
........
  r87567 | r.david.murray | 2010-12-29 11:57:24 -0500 (Wed, 29 Dec 2010) | 2 lines

  Fix a comment typo and update another comment to match Python3 reality
........
2010-12-29 16:59:09 +00:00
Senthil Kumaran 559395fde0 Merged revisions 87564 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87564 | senthil.kumaran | 2010-12-29 14:25:42 +0800 (Wed, 29 Dec 2010) | 3 lines

  Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.
........
2010-12-29 06:30:19 +00:00
Terry Reedy 0df73674e5 Issue 10738: Fix webbrowser.Opera.raise_opts value. 2010-12-28 19:53:32 +00:00
R. David Murray 08fc701714 Merged revisions 87550 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87550 | r.david.murray | 2010-12-28 13:54:13 -0500 (Tue, 28 Dec 2010) | 8 lines

  #9824: encode , and ; in cookie values so that browsers don't split on them

  There is a small chance of backward incompatibility here, but only for
  non-SimpleCookie applications reading SimpleCookie generated cookies.  Even
  then, any such ap is likely to be handling escaped values already, and it would
  take a fairly perverse implementation of unescaping to fail to unescape these
  newly escaped chars, so the risk seems minimal.
........
2010-12-28 19:11:03 +00:00
Senthil Kumaran 3f60f09eb2 Fix Issue10759 - HTMLParser.unescape() to handle malform charrefs. 2010-12-28 16:05:07 +00:00
Alexander Belopolsky 06fdbedf81 fixed issue 10254 test 2010-12-28 16:04:06 +00:00
Alexander Belopolsky dce6cf353c Merged revisions 87442 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87442 | alexander.belopolsky | 2010-12-22 21:27:37 -0500 (Wed, 22 Dec 2010) | 1 line

  Issue #10254: Fixed a crash and a regression introduced by the implementation of PRI 29.
........
2010-12-28 15:47:56 +00:00
R. David Murray 5360d003b6 #1379416: encode charset name to ascii to avoid unicode promotion of output 2010-12-27 19:17:17 +00:00
R. David Murray 49ee82c4eb Merged revisions 87508 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87508 | r.david.murray | 2010-12-26 23:31:48 -0500 (Sun, 26 Dec 2010) | 5 lines

  Skip test that does not raise an error on Windows.

  I'm assuming that the putative path from the malformed
  pth file is simply not found and therefore ignored.
........
2010-12-27 04:37:25 +00:00
R. David Murray 82f58460b2 Merged revisions 87501 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87501 | r.david.murray | 2010-12-26 19:03:13 -0500 (Sun, 26 Dec 2010) | 2 lines

  Escape file path before searching for it in output via regex
........
2010-12-27 00:09:41 +00:00
R. David Murray 5874ed6cee Merged revisions 87497 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87497 | r.david.murray | 2010-12-26 14:54:29 -0500 (Sun, 26 Dec 2010) | 7 lines

  #5258/#10642: print fn, line, traceback and continue when .pth file is broken

  If a .pth file contained an error, it could cause a traceback in site.py,
  terminating its processing.  In 2.7 and 3.2, the interpreter will then not
  start.  Previously, a message would print saying to use -v to get the
  traceback.  In either case, the traceback generated for a failed .pth file did
  not include the .pth filename, making it difficult to debug the problem.  Now
  site.py reports not only the .pth filename but also the line number causing the
  error, and just skips the remainder of the file.
........
2010-12-26 22:29:53 +00:00
Éric Araujo 8e726b4328 Merged revisions 87493 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87493 | eric.araujo | 2010-12-26 18:53:27 +0100 (dim., 26 déc. 2010) | 2 lines

  Fix typo (#10770)
........
2010-12-26 17:55:02 +00:00
Éric Araujo c6dc95f5f8 Merged revisions 87489 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87489 | eric.araujo | 2010-12-26 03:38:05 +0100 (dim., 26 déc. 2010) | 2 lines

  Remove unexistent parameter (#3216)
........
2010-12-26 02:39:48 +00:00
Éric Araujo 5c804ffa6e Merged revisions 87486 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87486 | eric.araujo | 2010-12-26 03:18:49 +0100 (dim., 26 déc. 2010) | 2 lines

  Fix typo spotted by Rodrigo Bernardo Pimentel (#9891)
........
2010-12-26 02:24:42 +00:00
R. David Murray 770f4be5e0 Blocked revisions 87479 via svnmerge
........
  r87479 | r.david.murray | 2010-12-24 17:36:49 -0500 (Fri, 24 Dec 2010) | 8 lines

  #1693546: don't add quotes around RFC 2231 encoded values.

  The RFC is bit hard to understand on this point, but the examples
  clearly show that parameter values that are encoded according
  to its charset/language rules don't have surrounding quotes, and
  the ABNF does not allow for quotes.  So when we produce such
  encoded values, we no longer add quotes.
........
2010-12-24 22:41:42 +00:00
Alexander Belopolsky bd584d21e7 Merged revisions 87463 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87463 | alexander.belopolsky | 2010-12-23 19:24:11 -0500 (Thu, 23 Dec 2010) | 1 line

  Issue #9063: Corrected the tzinfo example.
........
2010-12-24 00:27:27 +00:00
Benjamin Peterson 5b859950d1 Merged revisions 87455 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87455 | benjamin.peterson | 2010-12-23 16:17:42 -0600 (Thu, 23 Dec 2010) | 1 line

  fix docstring
........
2010-12-23 22:22:48 +00:00
R. David Murray 341a5ef28b Blocked revisions 87451 via svnmerge
........
  r87451 | r.david.murray | 2010-12-23 15:35:46 -0500 (Thu, 23 Dec 2010) | 4 lines

  #1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz

  Original patch by Thomas Herve.
........
2010-12-23 20:37:41 +00:00
R. David Murray 14f6635762 Merged revisions 87448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines

  #4496: remove misleading comment and note that self.handlers is obsolete.

  self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
2010-12-23 19:50:56 +00:00
R. David Murray e1367f3e63 Blocked revisions 87430 via svnmerge
........
  r87430 | r.david.murray | 2010-12-21 16:53:37 -0500 (Tue, 21 Dec 2010) | 9 lines

  #4871: check that zipfile password is bytes, and give useful error message.

  Previously passing a string in as the password would fail either with
  an assertion error or a TypeError with a confusing error message.
  Note that a string can't be accepted since zipfile has no way to
  guess what encoding should be used to turn it into bytes.

  Patch by Victor Stinner.
........
2010-12-21 22:02:31 +00:00
Antoine Pitrou fc9ead69e5 Merged revisions 87427 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines

  Issue #10750: The `raw` attribute of buffered IO objects is now read-only.
........
2010-12-21 21:26:55 +00:00
Antoine Pitrou 5cf3672999 Merged revisions 87421 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87421 | antoine.pitrou | 2010-12-21 19:49:01 +0100 (mar., 21 déc. 2010) | 4 lines

  Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
  (part of #10735)
........
2010-12-21 18:56:45 +00:00
R. David Murray c132b590b6 Blocked revisions 87418 via svnmerge
........
  r87418 | r.david.murray | 2010-12-21 13:24:33 -0500 (Tue, 21 Dec 2010) | 10 lines

  Make test_compileall more robust by using -S to keep sys.path minimized.

  Try this again, hopefully the right way this time.

  Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
  install because it was tyring to write .pyc files to a read-only system
  directory during test_no_args_compiles_path.  Having the tests call python
  with -S should eliminate the system directories from the path.
........
2010-12-21 18:27:56 +00:00
R. David Murray a993b2d5de Merged revisions 87415 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87415 | r.david.murray | 2010-12-21 13:07:59 -0500 (Tue, 21 Dec 2010) | 4 lines

  Fix the change made for issue 1243654.

  Surprisingly, it turns out there was no test that exercised this code path.
........
2010-12-21 18:12:50 +00:00
Georg Brandl da29acd96d #10748: add versionchanged for non-trivial bugfix. 2010-12-21 17:58:06 +00:00
R. David Murray e321259c38 Blocked revisions 87411 via svnmerge
........
  r87411 | r.david.murray | 2010-12-20 14:04:51 -0500 (Mon, 20 Dec 2010) | 2 lines

  Revert incorrect patch made at the wrong time.
........
2010-12-20 19:07:21 +00:00
R. David Murray 556974ac9c Blocked revisions 87408 via svnmerge
........
  r87408 | r.david.murray | 2010-12-20 13:08:59 -0500 (Mon, 20 Dec 2010) | 8 lines

  Make test_compileall more robust by using -S to keep sys.path minimized.

  Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
  install because it was tyring to write .pyc files to a read-only system
  directory during test_no_args_compiles_path.  Having subprocess call python
  with -S should eliminate the system directories from the path.
........
2010-12-20 18:10:29 +00:00
Michael Foord e6e0e26780 Issue 10242. Switching unittest.TestCase.assertItemsEqual to use a collections.Counter under the hood.
This fixes bugs when comparing collections of items like sets that can be sorted without raising an exception but where sorting has no meaning.
2010-12-19 15:52:56 +00:00
Michael Foord a17f076f61 Issue 10611. SystemExit should not cause a unittest test run to exit. 2010-12-19 14:53:19 +00:00
Michael Foord 5657ff8aa0 Improvement to fix for issue 9926 to allow TestResult to be reused. 2010-12-19 14:12:23 +00:00
R. David Murray 62a1aaeeac Merged revisions 87027 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87027 | gregory.p.smith | 2010-12-04 06:36:58 -0500 (Sat, 04 Dec 2010) | 3 lines

  issue10622: fix superflous scrollbar on the right side of <pre> boxes in the
  generated html docs.  visible in chrome, possibly other webkit browsers.
........
2010-12-18 19:43:05 +00:00
R. David Murray 8820c1ae62 Blocked revisions 87384 via svnmerge
........
  r87384 | r.david.murray | 2010-12-18 13:25:38 -0500 (Sat, 18 Dec 2010) | 12 lines

  #9286: Fix the rfc822 parser to preserve whitespace in address local part.

  Such addresses are not RFC compliant except under the 'obsolete syntax'
  rules, but before this fix the whitespace was dropped from the input,
  concatenating the pieces.  That breaks one of the principles of the
  email package, that of preserving the input as much as possible.
  It also denies the application program the opportunity to apply its
  own heuristics to interpretation of such non-compliant addresses.

  It is possible users of the email package were depending on the local
  part always being a single token, so this fix will not be backported.
........
2010-12-18 18:32:28 +00:00
Antoine Pitrou d7b6ac66c1 Merged revisions 87373,87381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

BaseHTTPServer isn't fixed, this would require too much refactoring.

........
  r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines

  Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
........
  r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines

  NEWS entry for r87373
........
2010-12-18 18:18:21 +00:00
Ezio Melotti c139a5683b Merged revisions 87377 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87377 | ezio.melotti | 2010-12-18 18:31:58 +0100 (Sat, 18 Dec 2010) | 1 line

  Use lowercase true/false in assertTrue/assertFalse messages.
........
2010-12-18 17:58:29 +00:00
R. David Murray 3f752ab22e Merged revisions 87374 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87374 | r.david.murray | 2010-12-18 12:19:10 -0500 (Sat, 18 Dec 2010) | 8 lines

  #10404: Use ctl-button-1 for context menus on OSX Idle.

  This provides access to the context menus where they previously could
  not be accessed due to the way OSX Tk binds buttons.  It also
  improves platform consistency.

  Patch by Ned Deily.
........
2010-12-18 17:22:18 +00:00
Ezio Melotti cfe0c1631c Blocked revisions 87368 via svnmerge
........
  r87368 | ezio.melotti | 2010-12-18 15:59:43 +0100 (Sat, 18 Dec 2010) | 1 line

  #5587: add a repr to dict_proxy objects.  Patch by David Stanek and Daniel Urban.
........
2010-12-18 15:05:50 +00:00
R. David Murray 7a697251c9 Merged revisions 87356 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87356 | r.david.murray | 2010-12-17 22:48:32 -0500 (Fri, 17 Dec 2010) | 11 lines

  #9907: call rl_initialize early when using editline on OSX

  editline rl_initialize apparently discards any mappings done before it
  is called, which makes tab revert to file completion instead of inserting
  a tab.  So now on OSX we call rl_initialize first if we are using
  readline, and then re-read the users .editrc (if any) afterward so they
  can still override our defaults.

  Patch by Ned Deily, modified by Ronald Oussoren.
........
2010-12-18 03:52:09 +00:00
Daniel Stutzbach aa7017f5f5 Revert doc patch committed to the wrong branch: "Issue 2690: Doc fixup. xrange() objects are slicable." 2010-12-17 21:20:55 +00:00