Commit Graph

40880 Commits

Author SHA1 Message Date
Jeremy Hylton 0d52182f67 Move definition int sval into branch of ifdef where it is used.
Otherwise, you get a warning about an undefined variable.
2008-11-28 23:42:59 +00:00
Benjamin Peterson 6ed1c93c96 SVN format 9 is the same it seems 2008-11-28 23:18:46 +00:00
Benjamin Peterson 2555d9ddeb Merged revisions 67384,67386-67387,67389-67390,67392,67399-67400,67403-67405,67426 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r67384 | benjamin.peterson | 2008-11-25 16:13:31 -0600 (Tue, 25 Nov 2008) | 4 lines

  don't duplicate calls to start_tree()

  RefactoringTool.pre_order values now holds a list of the fixers while pre_order_mapping holds the dict.
........
  r67386 | benjamin.peterson | 2008-11-25 16:44:52 -0600 (Tue, 25 Nov 2008) | 1 line

  #4423 fix_imports was still replacing usage of a module if attributes were being used
........
  r67387 | benjamin.peterson | 2008-11-25 16:47:54 -0600 (Tue, 25 Nov 2008) | 1 line

  fix broken test
........
  r67389 | benjamin.peterson | 2008-11-25 17:13:17 -0600 (Tue, 25 Nov 2008) | 1 line

  remove compatibility code; we only cater to 2.5+
........
  r67390 | benjamin.peterson | 2008-11-25 22:03:36 -0600 (Tue, 25 Nov 2008) | 1 line

  fix #3994; the usage of changed imports was fixed in nested cases
........
  r67392 | benjamin.peterson | 2008-11-26 11:11:40 -0600 (Wed, 26 Nov 2008) | 1 line

  simpilfy and comment fix_imports
........
  r67399 | benjamin.peterson | 2008-11-26 11:47:03 -0600 (Wed, 26 Nov 2008) | 1 line

  remove more compatibility code
........
  r67400 | benjamin.peterson | 2008-11-26 12:07:41 -0600 (Wed, 26 Nov 2008) | 1 line

  set svn:ignore
........
  r67403 | benjamin.peterson | 2008-11-26 13:11:11 -0600 (Wed, 26 Nov 2008) | 1 line

  wrap import
........
  r67404 | benjamin.peterson | 2008-11-26 13:29:49 -0600 (Wed, 26 Nov 2008) | 1 line

  build the fix_imports pattern in compile_pattern, so MAPPING can be changed and reflected in the pattern
........
  r67405 | benjamin.peterson | 2008-11-26 14:01:24 -0600 (Wed, 26 Nov 2008) | 1 line

  stop ugly messages about runtime errors being from printed
........
  r67426 | benjamin.peterson | 2008-11-28 16:01:40 -0600 (Fri, 28 Nov 2008) | 5 lines

  don't replace a module name if it is in the middle of a attribute lookup

  This fix also stops module names from being replaced if they are not in an attribute lookup.
........
2008-11-28 22:12:14 +00:00
Christian Heimes eac8071e16 Retain copyright of processing examples. This was requested by a Debian maintainer during packaging of the multiprocessing package for 2.4/2.5 2008-11-28 19:33:33 +00:00
Jesse Noller 1f8b49f517 issue4238: bsd support for cpu_count 2008-11-28 18:59:35 +00:00
Jesse Noller a280fd72e7 mp docs - fix issues 4012,3518,4193 2008-11-28 18:22:54 +00:00
Christian Heimes aa67471227 Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception 2008-11-28 11:02:32 +00:00
Matthias Klose 4de979153e - Modules/Setup.dist: Update _elementtree, add _bisect, datetime 2008-11-27 10:14:22 +00:00
Matthias Klose b0c3c026a0 - Modules/Setup.dist: Update pyexpat 2008-11-27 07:45:25 +00:00
Benjamin Peterson 78f98a4d7a fix typo in sqlite3 docs 2008-11-26 17:39:17 +00:00
Matthias Klose 7fab0dcdd4 - Modules/Setup.dist: Mention _elementtree and _pickle. 2008-11-26 17:32:49 +00:00
Benjamin Peterson b38e325e97 Merged revisions 67183,67191,67371 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r67183 | benjamin.peterson | 2008-11-10 21:51:33 -0600 (Mon, 10 Nov 2008) | 1 line

  handle 'import x as y' in fix_imports; this still needs more work...
........
  r67191 | benjamin.peterson | 2008-11-11 17:24:51 -0600 (Tue, 11 Nov 2008) | 1 line

  super() is good
........
  r67371 | benjamin.peterson | 2008-11-24 16:02:00 -0600 (Mon, 24 Nov 2008) | 1 line

  don't blow up in the metaclass fixer when assignments in the class statement aren't simple
........
2008-11-25 04:07:45 +00:00
Benjamin Peterson 9e6310d936 always check the return value of NEW_IDENTIFIER 2008-11-25 03:43:14 +00:00
Jeremy Hylton 8942011db1 Add unittests that verify documented behavior of public methods in Transport
class.

These methods can be overridden.  The tests verify that the overridden
methods are called, and that changes to the connection have a visible
effect on the request.
2008-11-24 22:00:29 +00:00
Georg Brandl 623429132e #4404: make clear what "path" is. 2008-11-24 19:56:47 +00:00
Georg Brandl df9bcf1196 Fix typo. 2008-11-24 16:16:07 +00:00
Benjamin Peterson 9dfe6a8862 #4396 make the parser module correctly validate the with syntax 2008-11-24 04:09:03 +00:00
Benjamin Peterson 39ff59e577 replace reference to debugger-hooks 2008-11-24 01:16:29 +00:00
Gregory P. Smith b07bd10c91 Document PY_SSIZE_T_CLEAN for PyArg_ParseTuple. 2008-11-24 00:41:43 +00:00
Georg Brandl 0b9999c079 #4399: fix typo. 2008-11-23 21:57:30 +00:00
Georg Brandl 061d2e2ee9 #4392: fix parameter name. 2008-11-23 19:17:25 +00:00
Matthias Klose 75bfcbaf88 - Fix typo in last checkin 2008-11-23 13:54:42 +00:00
Matthias Klose 225d60c31e - Modules/Setup.dist: Mention _functools in section "Modules that should
always be present (non UNIX dependent)"
2008-11-23 13:37:03 +00:00
Benjamin Peterson 21f25d3fcd raise a better error 2008-11-23 02:09:41 +00:00
Amaury Forgeot d'Arc dc61901dd2 #3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter from
stack overflow. But doing this, it always crashes when the stack is nearly full.

Reviewed by Martin von Loewis. Will backport to 2.6.
2008-11-22 20:01:18 +00:00
Amaury Forgeot d'Arc 98adb5ca65 yuvconvert.c is a part of the "sv" module, an old IRIX thing
and certainly not useful for any Windows build.
2008-11-22 19:39:38 +00:00
Georg Brandl f1dd4bcf39 Fix error about "-*-" being mandatory in coding cookies. 2008-11-22 10:08:50 +00:00
Georg Brandl 5ecd7452ec Fix typo. 2008-11-22 08:45:33 +00:00
Georg Brandl b053f991b4 #4364: fix attribute name on ctypes object. 2008-11-22 08:34:14 +00:00
Benjamin Peterson bfc51567f5 backport r67325: make FileIO.mode always contain 'b' 2008-11-22 01:59:15 +00:00
Benjamin Peterson c078f929cb don't segfault when \N escapes are used and unicodedata fails to load
Fixes #4367
2008-11-21 22:27:24 +00:00
Amaury Forgeot d'Arc d42941751c #4363: Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present.
Will backport to 2.6
2008-11-21 22:05:48 +00:00
Amaury Forgeot d'Arc 322656596a Fixed issue #4233.
Changed semantic of _fileio.FileIO's close()  method on file objects with closefd=False.
The file descriptor is still kept open but the file object behaves like a closed file.
The FileIO  object also got a new readonly attribute closefd.

Approved by Barry

Backport of r67106 from the py3k branch
2008-11-20 23:34:31 +00:00
Benjamin Peterson ad100c3acb backport r67300 2008-11-20 22:06:22 +00:00
Benjamin Peterson d3b5a7985d oops! didn't mean to disable that test 2008-11-20 21:44:23 +00:00
Benjamin Peterson 050f4adcb4 fix indentation and a sphinx warning 2008-11-20 21:25:31 +00:00
Benjamin Peterson 5ab9c3badb move useful sys.settrace information to the function's documentation from the debugger 2008-11-20 04:05:12 +00:00
Benjamin Peterson 46cc6d1102 make sure that bytearray methods return a new bytearray even if there is no change
Fixes #4348
Reviewed by Brett
2008-11-19 21:49:09 +00:00
Brett Cannon 3b30e2c86d Ignore .pyc and .pyo files. 2008-11-19 20:29:39 +00:00
Josiah Carlson a98d72d598 Fix for issue 4332 in trunk. 2008-11-19 18:26:12 +00:00
Martin v. Löwis 6347098a26 Issue #4289: Remove Cancel button from AdvancedDlg. 2008-11-19 13:51:44 +00:00
Martin v. Löwis bb9b1f1d4a Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__ 2008-11-19 09:09:41 +00:00
Georg Brandl 65e8fc7fc1 Try to fix problems with verbatim. 2008-11-19 07:59:09 +00:00
Skip Montanaro 7fb29797e3 patch from issue 1108 2008-11-19 03:35:41 +00:00
Amaury Forgeot d'Arc 7cfe7ea745 #4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
Will backport to 2.4.
2008-11-18 22:19:37 +00:00
Benjamin Peterson 273c233c78 when __getattr__ is a descriptor, call it correctly; fixes #4230
patch from Ziga Seilnacht
2008-11-17 22:39:09 +00:00
Benjamin Peterson 233bb00c1c improve __hash__ docs 2008-11-17 22:05:19 +00:00
Benjamin Peterson d0a05bfd68 a few fixes on the download page 2008-11-17 21:39:05 +00:00
Benjamin Peterson eac68f425a run autoconf 2008-11-16 17:54:55 +00:00
Georg Brandl 4b9bcfc98d #4316: fix configure.in markup problem. 2008-11-16 08:00:17 +00:00