Commit Graph

37038 Commits

Author SHA1 Message Date
Gregory P. Smith d8fa68b575 fix cut and paste error in a comment 2008-08-18 01:05:25 +00:00
Brett Cannon e8d0bf9160 Merged revisions 65795 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65795 | brett.cannon | 2008-08-17 17:46:22 -0700 (Sun, 17 Aug 2008) | 3 lines

  Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
  the module but exposed as part of the API.
........
2008-08-18 00:51:19 +00:00
Brett Cannon 2f5cb3468e Merged revisions 65793 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65793 | brett.cannon | 2008-08-17 17:41:11 -0700 (Sun, 17 Aug 2008) | 2 lines

  Remove an unneeded import of abc.ABCMeta from 'inspect'.
........
2008-08-18 00:43:03 +00:00
Brett Cannon f0a39af1ae Merged revisions 65791 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65791 | brett.cannon | 2008-08-17 17:36:52 -0700 (Sun, 17 Aug 2008) | 2 lines

  Remove two unneeded imports in 'io'.
........
2008-08-18 00:39:30 +00:00
Brett Cannon b5ebf27b88 Merged revisions 65787 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65787 | brett.cannon | 2008-08-17 15:10:11 -0700 (Sun, 17 Aug 2008) | 3 lines

  Remove imports of 'warnings' that are no longer needed in dummy_thread,
  filecmp, and shelve.
........
2008-08-17 22:31:15 +00:00
Benjamin Peterson 38679e2777 fix markup 2008-08-17 20:34:29 +00:00
Benjamin Peterson 4cd6a95dfe Merged revisions 65659,65693,65700,65702,65706-65707,65761 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65659 | martin.v.loewis | 2008-08-12 15:45:21 -0500 (Tue, 12 Aug 2008) | 2 lines

  Add Hirokazu Yamamoto.
........
  r65693 | georg.brandl | 2008-08-15 13:35:09 -0500 (Fri, 15 Aug 2008) | 2 lines

  #3558: Attribute reference binds more tightly than subscription and call.
........
  r65700 | antoine.pitrou | 2008-08-15 16:03:21 -0500 (Fri, 15 Aug 2008) | 3 lines

  #2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
........
  r65702 | gregory.p.smith | 2008-08-15 18:14:00 -0500 (Fri, 15 Aug 2008) | 2 lines

  document that waitpid raises OSError
........
  r65706 | benjamin.peterson | 2008-08-15 22:02:41 -0500 (Fri, 15 Aug 2008) | 1 line

  fix markup
........
  r65707 | benjamin.peterson | 2008-08-15 22:13:07 -0500 (Fri, 15 Aug 2008) | 1 line

  note how os.utime should be used for emulating touch
........
  r65761 | antoine.pitrou | 2008-08-17 08:06:29 -0500 (Sun, 17 Aug 2008) | 3 lines

  fix ZipFile.testzip() to work with very large embedded files
........
2008-08-17 20:23:46 +00:00
Benjamin Peterson 9209138ff9 Blocked revisions 65679,65710 via svnmerge
........
  r65679 | facundo.batista | 2008-08-14 11:51:00 -0500 (Thu, 14 Aug 2008) | 5 lines


  Issue 1432. Fixes a bug caused because of the evolution
  of the RFC that describes the behaviour. Note that we now
  have the same behaviour than the current browsers.
........
  r65710 | facundo.batista | 2008-08-16 09:44:07 -0500 (Sat, 16 Aug 2008) | 4 lines


  Issue #2776: fixed small issue when handling an URL with double slash
  after a 302 response in the case of not going through a proxy.
........
2008-08-17 19:28:19 +00:00
Benjamin Peterson 5399114a14 correct return type 2008-08-17 18:57:58 +00:00
Benjamin Peterson 55e00f279f Merged revisions 65715,65724,65726,65732,65736-65739,65775 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65715 | benjamin.peterson | 2008-08-16 16:04:16 -0500 (Sat, 16 Aug 2008) | 1 line

  add some documentation for symtable
........
  r65724 | benjamin.peterson | 2008-08-16 17:11:33 -0500 (Sat, 16 Aug 2008) | 2 lines

  include filename and line number in SyntaxError
........
  r65726 | georg.brandl | 2008-08-16 17:37:05 -0500 (Sat, 16 Aug 2008) | 2 lines

  Review symtable docs.
........
  r65732 | benjamin.peterson | 2008-08-16 18:29:40 -0500 (Sat, 16 Aug 2008) | 1 line

  PySTEntry's constructor is static; there's no point in a fancy API name
........
  r65736 | benjamin.peterson | 2008-08-16 20:09:17 -0500 (Sat, 16 Aug 2008) | 1 line

  expose PySTEntry.nested so the symtable module will work
........
  r65737 | benjamin.peterson | 2008-08-16 20:17:15 -0500 (Sat, 16 Aug 2008) | 1 line

  a few improvements
........
  r65738 | benjamin.peterson | 2008-08-16 20:27:30 -0500 (Sat, 16 Aug 2008) | 1 line

  fix compile errors
........
  r65739 | benjamin.peterson | 2008-08-16 21:23:43 -0500 (Sat, 16 Aug 2008) | 1 line

  uhh PySTEntry->ste_unoptimized has to be exposed too
........
  r65775 | benjamin.peterson | 2008-08-17 12:13:26 -0500 (Sun, 17 Aug 2008) | 5 lines

  get the symtable module back in working order
  - Fix broken functions
  - Add (hopefully) extensive tests
  - Modernize a little
........
2008-08-17 18:02:44 +00:00
Benjamin Peterson 8ba92f6502 Blocked revisions 65741 via svnmerge
........
  r65741 | facundo.batista | 2008-08-16 22:38:39 -0500 (Sat, 16 Aug 2008) | 4 lines


  Issue 2464. Supports a malformation in the URL received
  in a redirect.
........
2008-08-17 17:15:25 +00:00
Antoine Pitrou 3db3e87434 Merged revisions 65773 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65773 | antoine.pitrou | 2008-08-17 19:01:49 +0200 (dim., 17 août 2008) | 3 lines

  #3556: test_raiseMemError consumes an insane amount of memory
........
2008-08-17 17:06:51 +00:00
Hirokazu Yamamoto 43e45192bd NEWS items from 2.6 don't need to be merged to 3.0.
http://mail.python.org/pipermail/python-3000-checkins/2008-August/004301.html
2008-08-17 15:24:17 +00:00
Hirokazu Yamamoto cbba8e4e92 Blocked revisions 65762 via svnmerge
........
  r65762 | hirokazu.yamamoto | 2008-08-17 22:10:46 +0900 | 2 lines

  Backport r65661, r65760: Issue #3575: Incremental decoder's decode
  function now takes bytearray by using 's*' instead of 't#'.
........
2008-08-17 15:16:18 +00:00
Antoine Pitrou a8838f73b0 Blocked revisions 65768 via svnmerge
........
  r65768 | antoine.pitrou | 2008-08-17 16:43:41 +0200 (dim., 17 août 2008) | 3 lines

  backport r65723: strengthen test_os.test_closerange
........
2008-08-17 14:44:35 +00:00
Hirokazu Yamamoto 078f0f5a6d Issue #3575: Incremental decoder's decode function now takes bytearray
by using 's*' instead of 't#'
2008-08-17 12:59:57 +00:00
Hirokazu Yamamoto 289d9eb10f Blocked revisions 65748 via svnmerge
........
  r65748 | hirokazu.yamamoto | 2008-08-17 18:46:56 +0900 | 1 line

  I forgot to update NEWS.
........
2008-08-17 09:57:45 +00:00
Hirokazu Yamamoto d35e618962 I forgot to update NEWS. 2008-08-17 09:52:28 +00:00
Hirokazu Yamamoto d7e4c082f2 Merged revisions 65745 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65745 | hirokazu.yamamoto | 2008-08-17 18:19:52 +0900 | 2 lines

  Issue #2222: Fixed reference leak when occured os.rename()
  fails unicode conversion on 2nd parameter. (windows only)
........
2008-08-17 09:30:15 +00:00
Hirokazu Yamamoto ab058ed3df RPC_WSTR is not available Visual Studio 2003 or earlier.
(Maybe I should have defined RPC_WSTR on old compiler,
but uuidcreate() is only place using it, so I simply replaced
with unsigned short *)
2008-08-17 07:26:26 +00:00
Brett Cannon 340a62b9da Blocked revisions 65742 via svnmerge
........
  r65742 | brett.cannon | 2008-08-16 21:16:04 -0700 (Sat, 16 Aug 2008) | 2 lines

  Update distutils so that it triggers no warnings when run under -3.
........
2008-08-17 04:28:14 +00:00
Facundo Batista f24802c006 Issue 2464. Supports a malformation in the URL received
in a redirect.
2008-08-17 03:36:03 +00:00
Antoine Pitrou 8d5d62ff0f Blocked revisions 65733 via svnmerge
........
  r65733 | antoine.pitrou | 2008-08-17 02:36:03 +0200 (dim., 17 août 2008) | 3 lines

  Make test_ossaudiodev work.
........
2008-08-17 00:39:46 +00:00
Antoine Pitrou 7a5dc75545 #3567: fix sunau for running with -bb and make test_ossaudiodev work. 2008-08-17 00:38:32 +00:00
Antoine Pitrou 47d305d689 Issue #3571: test_bytes mistakingly closed stdin 2008-08-16 23:28:44 +00:00
Antoine Pitrou b9ee06c26b #3571: try to fix recurrent buildbot failures by strenghtening test_os.test_closerange 2008-08-16 22:03:17 +00:00
Brett Cannon a307d0fc41 Blocked revisions 65721 via svnmerge
........
  r65721 | brett.cannon | 2008-08-16 15:00:27 -0700 (Sat, 16 Aug 2008) | 2 lines

  Silence DeprecationWarning raised by mimetools and rfc822 in cgi.
........
2008-08-16 22:01:29 +00:00
Brett Cannon 6efe96a23e Blocked revisions 65719 via svnmerge
........
  r65719 | brett.cannon | 2008-08-16 14:56:03 -0700 (Sat, 16 Aug 2008) | 2 lines

  Silence the DeprecationWarning raised in httplib when mimetools is imported.
........
2008-08-16 21:59:25 +00:00
Brett Cannon 20dcbe9d1e Blocked revisions 65716 via svnmerge
........
  r65716 | brett.cannon | 2008-08-16 14:47:07 -0700 (Sat, 16 Aug 2008) | 5 lines

  Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
  This does have an unfortunate side-effect of silencing the warning for all
  subsequent code that imports mimetools as well since the warning is only
  executed upon the first import of mimetools.
........
2008-08-16 21:48:09 +00:00
Benjamin Peterson 0b95290f4e Merged revisions 65713 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65713 | benjamin.peterson | 2008-08-16 11:29:02 -0500 (Sat, 16 Aug 2008) | 1 line

  #3424 rearrange the order of tests in imghdr to place more common types first
........
2008-08-16 16:48:16 +00:00
Benjamin Peterson 0067bd68c9 add _testcapi.raise_memoryerror to make test_exceptions.test_MemoryError simpler 2008-08-16 16:11:03 +00:00
Facundo Batista 72dc1eadd9 Issue #2776: fixed small issue when handling an URL with double slash
after a 302 response in the case of not going through a proxy.
2008-08-16 14:44:32 +00:00
Martin v. Löwis 371bb50b87 Bug #3542: Support Unicode strings in _msi module. 2008-08-16 13:02:57 +00:00
Benjamin Peterson 9abf93d6c9 murder some versionadded and versionchanged directives in their beds 2008-08-16 02:59:55 +00:00
Benjamin Peterson 24c4d85598 Merged revisions 65703 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r65703 | benjamin.peterson | 2008-08-15 18:51:24 -0500 (Fri, 15 Aug 2008) | 11 lines

  Merged revisions 65397 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r65397 | collin.winter | 2008-08-01 22:39:06 -0500 (Fri, 01 Aug 2008) | 5 lines

    Patch #3480 by Nick Edds.

    Dramatically simplifies the fix_imports pattern, resulting in a reduction of the test_all_fixers runtime from 122+ secs to 59 secs (a good predictor of 2to3 performance).
  ........
................
2008-08-15 23:56:02 +00:00
Christian Heimes deb75f579b Removed some unused imports to decrease the amount of loaded modules during startup.
Added fallback to _dummy_thread for OSs w/o thread support.
2008-08-15 18:43:03 +00:00
Antoine Pitrou 34ed9f7c5e Fix building binascii when not using the zlib's crc32 (build failure on Windows buildbots) 2008-08-15 14:51:48 +00:00
Martin v. Löwis c17517589a Zero-initialize buf. Fixes #3557. 2008-08-15 06:27:17 +00:00
Alexandre Vassalotti 1f9d907c90 Issue 3514: Fixed segfault dues to infinite loop in __getattr__. 2008-08-15 03:07:47 +00:00
Antoine Pitrou e1e48ea29b Fix build from a blank checkout by using the _thread module instead of threading in io.py
(thanks Christian!)
2008-08-15 00:05:08 +00:00
Antoine Pitrou 8769576477 Merged revisions 65686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65686 | antoine.pitrou | 2008-08-14 23:04:30 +0200 (jeu., 14 août 2008) | 3 lines

  Issue #3476: make BufferedReader and BufferedWriter thread-safe
........
2008-08-14 22:44:29 +00:00
Martin v. Löwis 74bbea7ed7 Merged revisions 65677-65678,65683 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65677 | martin.v.loewis | 2008-08-14 17:54:27 +0200 (Do, 14 Aug 2008) | 3 lines

  Make obj an owned reference in Py_buffer; this checkin
  was missing from the patch for #3139.
........
  r65678 | martin.v.loewis | 2008-08-14 17:56:07 +0200 (Do, 14 Aug 2008) | 2 lines

  Properly INCREF reference in Py_buffer.
........
  r65683 | martin.v.loewis | 2008-08-14 22:12:06 +0200 (Do, 14 Aug 2008) | 2 lines

  Fix memory leak: Always DECREF obj in PyBuffer_Release.
........
2008-08-14 20:32:30 +00:00
Facundo Batista 23e3856b1e Issue 1432. Fixes a bug caused because of the evolution
of the RFC that describes the behaviour. Note that we now
have the same behaviour than the current browsers.
2008-08-14 16:55:14 +00:00
Martin v. Löwis 7b9cb2579c Use s* to receive data. Fixes #3552. 2008-08-14 15:52:23 +00:00
Georg Brandl 42b2f2ec78 #3550: socket APIs use bytes, not strings. 2008-08-14 11:50:32 +00:00
Hirokazu Yamamoto ad3489ee49 Merged revisions 65672 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65672 | hirokazu.yamamoto | 2008-08-14 20:26:34 +0900 | 1 line

  Added _multiprocessing module support. (VC6)
........
2008-08-14 11:34:49 +00:00
Hirokazu Yamamoto 3ff5393cb7 Blocked revisions 65663 via svnmerge
........
  r65663 | hirokazu.yamamoto | 2008-08-14 10:33:44 +0900 | 19 lines

  Issue #2065: VC6 related fix.

  - PC/VC6/_bsddb.dsp:
      removed '/nodefaultlib:"msvcrt"' to fix linker error.

  - PC/VC6/_msi.dsp, PC/VC6/pcbuild.dsw:
      added new module support.

  - PC/VC6/_sqlite3.dsp:
      /D "MODULE_NAME=\"sqlite3\""
      caused extra leading space like
      #define MODULE_NAME " sqlite3"
      so uses
      /D MODULE_NAME=\"sqlite3\"
      instead.

  - PC/VC6/python.dsp:
      changed stack size to 2MB to avoid stack overflow on
      some tests.
........
2008-08-14 07:37:15 +00:00
Hirokazu Yamamoto 95b1cf646a Merged revisions 65667 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65667 | hirokazu.yamamoto | 2008-08-14 14:50:43 +0900 | 1 line

  Fixed test_distutils error (test_build_ext) on VC6.
........
2008-08-14 07:35:13 +00:00
Brett Cannon 3a954da1a7 Merged revisions 65668 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65668 | brett.cannon | 2008-08-13 22:55:18 -0700 (Wed, 13 Aug 2008) | 4 lines

  Fix markup for various binary operation examples where the operands were bolded
  and the operator was made literal, leading to non-valid reST. Changed to have
  the entire expression just be a literal bit of text.
........
2008-08-14 05:59:39 +00:00
Brett Cannon b6b8ebb610 Blocked revisions 65665 via svnmerge
........
  r65665 | brett.cannon | 2008-08-13 22:00:03 -0700 (Wed, 13 Aug 2008) | 11 lines

  Silence the DeprecationWarning of rfc822 triggered by its importation in
  mimetools.

  This has an unfortunate side-effect of potentially not letting any warning
  about rfc822's deprecation be seen by user-visible code if rfc822 is not
  imported before mimetools. This is because modules are cached in sys.modules
  and thus do not have their deprecation triggered more than once. But this
  silencing would have happened by other code that silences the use of mimetools
  or rfc822 anyway in the stdlib or user code, and thus seems justified to be
  done here.
........
2008-08-14 05:01:01 +00:00