]> granicus.if.org Git - python/log
python
14 years agozipimport: catch _PyUnicode_AsString() failure in get_code_from_data()
Victor Stinner [Sat, 16 Oct 2010 11:29:07 +0000 (11:29 +0000)]
zipimport: catch _PyUnicode_AsString() failure in get_code_from_data()

It occurs if the path contains surrogates.

14 years agoFixes issue 10120 (concurrent.futures module is not installed properly), patch by...
Brian Quinlan [Sat, 16 Oct 2010 10:36:11 +0000 (10:36 +0000)]
Fixes issue 10120 (concurrent.futures module is not installed properly), patch by Neil Muller

14 years agoFix incorrect maintainer name
Brian Quinlan [Sat, 16 Oct 2010 10:12:32 +0000 (10:12 +0000)]
Fix incorrect maintainer name

14 years agoAdd bquinlan as the maintainer of concurrent.futures
Brian Quinlan [Sat, 16 Oct 2010 09:55:14 +0000 (09:55 +0000)]
Add bquinlan as the maintainer of concurrent.futures

14 years agodon't identify the toplevel namespace by name #9997
Benjamin Peterson [Sat, 16 Oct 2010 03:45:45 +0000 (03:45 +0000)]
don't identify the toplevel namespace by name #9997

14 years agofix refleak
Benjamin Peterson [Sat, 16 Oct 2010 03:12:39 +0000 (03:12 +0000)]
fix refleak

14 years agoAdd NEWS for issue 9807 part 1.
Barry Warsaw [Sat, 16 Oct 2010 01:20:45 +0000 (01:20 +0000)]
Add NEWS for issue 9807 part 1.

14 years agoFirst (uncontroversial) part of issue 9807.
Barry Warsaw [Sat, 16 Oct 2010 01:04:07 +0000 (01:04 +0000)]
First (uncontroversial) part of issue 9807.

* Expose the build flags to Python as sys.abiflags
* Shared library libpythonX.Y<abiflags>.so
* python-config --abiflags
* Make two distutils tests that failed with --enable-shared (even before this
  patch) succeed.
* Fix a few small style issues.

14 years agorun autoconf
Benjamin Peterson [Fri, 15 Oct 2010 23:14:46 +0000 (23:14 +0000)]
run autoconf

14 years ago#9862: On AIX PIPE_BUF is broken. Make it 512.
R. David Murray [Fri, 15 Oct 2010 23:12:57 +0000 (23:12 +0000)]
#9862: On AIX PIPE_BUF is broken.  Make it 512.

Patch by SĂ©bastien SablĂ©.

14 years agoFix imp_cache_from_source(): Decode make_compiled_pathname() result from the
Victor Stinner [Fri, 15 Oct 2010 22:46:07 +0000 (22:46 +0000)]
Fix imp_cache_from_source(): Decode make_compiled_pathname() result from the
filesystem encoding instead of utf-8.

imp_cache_from_source() encodes the input path to filesystem encoding and this
path is passed to make_compiled_pathname().

14 years agoimp_load_module() uses PyUnicode_FSConverter() to support surrogates in module
Victor Stinner [Fri, 15 Oct 2010 22:43:10 +0000 (22:43 +0000)]
imp_load_module() uses PyUnicode_FSConverter() to support surrogates in module
path

14 years agorevert change in inappropiate branch
Benjamin Peterson [Fri, 15 Oct 2010 21:56:35 +0000 (21:56 +0000)]
revert change in inappropiate branch

14 years agoimp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates in
Victor Stinner [Fri, 15 Oct 2010 20:34:32 +0000 (20:34 +0000)]
imp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates in
module path

14 years ago#10072: assume a bit less knowledge of the FTP protocol in the ftplib docs.
Georg Brandl [Fri, 15 Oct 2010 19:46:19 +0000 (19:46 +0000)]
#10072: assume a bit less knowledge of the FTP protocol in the ftplib docs.

14 years ago#6098: Refrain from claiming DOM level 3 conformance in minidom.
Georg Brandl [Fri, 15 Oct 2010 18:00:35 +0000 (18:00 +0000)]
#6098: Refrain from claiming DOM level 3 conformance in minidom.

14 years ago#5762: fix handling of empty namespace in minidom, which would result in AttributeErr...
Georg Brandl [Fri, 15 Oct 2010 17:58:45 +0000 (17:58 +0000)]
#5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml().

14 years ago#4785: document strict argument of JSONDecoder, plus add object_pairs_hook in the...
Georg Brandl [Fri, 15 Oct 2010 17:03:02 +0000 (17:03 +0000)]
#4785: document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings.

14 years ago#7790: move table of struct_time members to the actual description of struct_time.
Georg Brandl [Fri, 15 Oct 2010 17:01:15 +0000 (17:01 +0000)]
#7790: move table of struct_time members to the actual description of struct_time.

14 years ago#4968: updates to inspect.is* function docs.
Georg Brandl [Fri, 15 Oct 2010 16:53:24 +0000 (16:53 +0000)]
#4968: updates to inspect.is* function docs.

14 years ago#6798: fix wrong docs for the arguments to several trace events.
Georg Brandl [Fri, 15 Oct 2010 16:42:37 +0000 (16:42 +0000)]
#6798: fix wrong docs for the arguments to several trace events.

14 years agoFix issue references.
Georg Brandl [Fri, 15 Oct 2010 16:42:14 +0000 (16:42 +0000)]
Fix issue references.

14 years ago#7303: add documentation for useful pkgutil functions and classes.
Georg Brandl [Fri, 15 Oct 2010 16:35:46 +0000 (16:35 +0000)]
#7303: add documentation for useful pkgutil functions and classes.

14 years agoIssue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky [Fri, 15 Oct 2010 16:28:20 +0000 (16:28 +0000)]
Issue #9308: Removed redundant coding cookies.  Added tests for
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.

14 years ago#9054: fix crash when using pyexpat with a system expat lib version 2.0.1.
Georg Brandl [Fri, 15 Oct 2010 16:26:08 +0000 (16:26 +0000)]
#9054: fix crash when using pyexpat with a system expat lib version 2.0.1.

14 years agoRemove unused label.
Georg Brandl [Fri, 15 Oct 2010 16:23:54 +0000 (16:23 +0000)]
Remove unused label.

14 years ago#9801: document how list and dict proxies created by Managers behave w.r.t. mutable...
Georg Brandl [Fri, 15 Oct 2010 16:19:43 +0000 (16:19 +0000)]
#9801: document how list and dict proxies created by Managers behave w.r.t. mutable items.

14 years ago#9683: remove broken dead code dealing with nested arguments removed from Py3k, and...
Georg Brandl [Fri, 15 Oct 2010 16:07:41 +0000 (16:07 +0000)]
#9683: remove broken dead code dealing with nested arguments removed from Py3k, and update the docs and docstrings accordingly.

14 years ago#7771: reference to documentation of dictview methods and operations.
Georg Brandl [Fri, 15 Oct 2010 16:03:02 +0000 (16:03 +0000)]
#7771: reference to documentation of dictview methods and operations.

14 years ago#2830: add html.escape() helper and move cgi.escape() uses in the standard library...
Georg Brandl [Fri, 15 Oct 2010 15:57:45 +0000 (15:57 +0000)]
#2830: add html.escape() helper and move cgi.escape() uses in the standard library to it.  It defaults to quote=True and also escapes single quotes, which makes casual use safer.  The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.

14 years agoRefrain from using inline suites.
Georg Brandl [Fri, 15 Oct 2010 15:32:05 +0000 (15:32 +0000)]
Refrain from using inline suites.

14 years ago#5355 followup: add unit test for new dictionaries, and provide submodules from xml...
Georg Brandl [Fri, 15 Oct 2010 15:25:23 +0000 (15:25 +0000)]
#5355 followup: add unit test for new dictionaries, and provide submodules from xml.parsers.expat as advertised.

14 years agoFix a minor docs bug.
Senthil Kumaran [Fri, 15 Oct 2010 15:21:19 +0000 (15:21 +0000)]
Fix a minor docs bug.

14 years ago#5355: Provide mappings from Expat error numbers to string descriptions and backwards...
Georg Brandl [Fri, 15 Oct 2010 14:46:48 +0000 (14:46 +0000)]
#5355: Provide mappings from Expat error numbers to string descriptions and backwards, in order to actually make it possible to analyze error codes provided by ExpatError.

14 years agoFix #10098. Fix sporadic test_os failures.
Brian Curtin [Fri, 15 Oct 2010 14:21:06 +0000 (14:21 +0000)]
Fix #10098. Fix sporadic test_os failures.

Amaury noticed that we're not waiting for the subprocess to be ready --
it should be checking for 1, not 0.

14 years agoRevert debug printout
Antoine Pitrou [Fri, 15 Oct 2010 13:52:53 +0000 (13:52 +0000)]
Revert debug printout

14 years agoEnable debug output at the start of the regression suite instead.
Antoine Pitrou [Fri, 15 Oct 2010 13:47:00 +0000 (13:47 +0000)]
Enable debug output at the start of the regression suite instead.
Sorry for the ephemeral inconvenience.

14 years agoTemporary debug printout for buildbots
Antoine Pitrou [Fri, 15 Oct 2010 13:35:51 +0000 (13:35 +0000)]
Temporary debug printout for buildbots

14 years agoFix sphinx role markups.
Senthil Kumaran [Fri, 15 Oct 2010 13:29:33 +0000 (13:29 +0000)]
Fix sphinx role markups.

14 years agoFix ``make check`` warnings.
Senthil Kumaran [Fri, 15 Oct 2010 13:10:10 +0000 (13:10 +0000)]
Fix ``make check`` warnings.

14 years agoFixing some sphinx inline directives - detected using ``make check``.
Senthil Kumaran [Fri, 15 Oct 2010 12:55:19 +0000 (12:55 +0000)]
Fixing some sphinx inline directives - detected using ``make check``.

14 years agoimp.load_dynamic() uses PyUnicode_FSConverter() to support surrogates
Victor Stinner [Fri, 15 Oct 2010 12:48:01 +0000 (12:48 +0000)]
imp.load_dynamic() uses PyUnicode_FSConverter() to support surrogates
in the library path.

14 years agoUse locale encoding if Py_FileSystemDefaultEncoding is not set
Victor Stinner [Fri, 15 Oct 2010 12:04:23 +0000 (12:04 +0000)]
Use locale encoding if Py_FileSystemDefaultEncoding is not set

 * PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and
   PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if
   Py_FileSystemDefaultEncoding is NULL
 * redecode_filenames() functions and _Py_code_object_list (issue #9630)
   are no more needed: remove them

14 years agoredecode_filename(): don't need to initialize variables
Victor Stinner [Fri, 15 Oct 2010 11:16:59 +0000 (11:16 +0000)]
redecode_filename(): don't need to initialize variables

14 years agoMark _Py_char2wchar() input argument as constant
Victor Stinner [Fri, 15 Oct 2010 11:15:54 +0000 (11:15 +0000)]
Mark _Py_char2wchar() input argument as constant

14 years agoIssue10100 - fromfd is now available on all platforms
Senthil Kumaran [Fri, 15 Oct 2010 09:02:14 +0000 (09:02 +0000)]
Issue10100 - fromfd is now available on all platforms

14 years agoremove empty file
Benjamin Peterson [Fri, 15 Oct 2010 01:07:08 +0000 (01:07 +0000)]
remove empty file

14 years agoMerged revisions 83852-83853,83857,84042,84216,84274-84276,84375,85388,85478,85506...
Benjamin Peterson [Thu, 14 Oct 2010 23:00:04 +0000 (23:00 +0000)]
Merged revisions 83852-83853,83857,84042,84216,84274-84276,84375,85388,85478,85506-85508 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r83852 | benjamin.peterson | 2010-08-08 15:45:44 -0500 (Sun, 08 Aug 2010) | 1 line

  wrap with parens
........
  r83853 | benjamin.peterson | 2010-08-08 15:46:31 -0500 (Sun, 08 Aug 2010) | 1 line

  use parens
........
  r83857 | benjamin.peterson | 2010-08-08 15:59:49 -0500 (Sun, 08 Aug 2010) | 1 line

  things which use touch_import should be pre order
........
  r84042 | george.boutsioukis | 2010-08-14 16:10:19 -0500 (Sat, 14 Aug 2010) | 2 lines

  This revision incorporates into the 2to3 tool the new, faster, tree matching algorithm developed during a GSOC project. The algorithm resides in the two added modules, btm_matcher and btm_utils. New code has been added to drive the new matching process in refactor.py and a few minor changes were made in other modules. A BM_compatible flag(False by default) has been added in fixer_base and it is set to True in most of the current fixers.
........
  r84216 | benjamin.peterson | 2010-08-19 16:44:05 -0500 (Thu, 19 Aug 2010) | 1 line

  allow star_expr in testlist_gexp
........
  r84274 | benjamin.peterson | 2010-08-22 18:40:46 -0500 (Sun, 22 Aug 2010) | 1 line

  wrap long line
........
  r84275 | benjamin.peterson | 2010-08-22 18:42:22 -0500 (Sun, 22 Aug 2010) | 1 line

  cleanup
........
  r84276 | benjamin.peterson | 2010-08-22 18:51:01 -0500 (Sun, 22 Aug 2010) | 1 line

  when there's a None value and a traceback, don't call type with it #9661
........
  r84375 | george.boutsioukis | 2010-08-31 08:38:53 -0500 (Tue, 31 Aug 2010) | 3 lines

  Idiomatic code changes & stylistic issues fixed in the BottomMatcher module. Thanks to Benjamin Peterson for taking the time to review the code.
........
  r85388 | benjamin.peterson | 2010-10-12 17:27:44 -0500 (Tue, 12 Oct 2010) | 1 line

  fix urllib fixer with multiple as imports on a line #10069
........
  r85478 | benjamin.peterson | 2010-10-14 08:09:56 -0500 (Thu, 14 Oct 2010) | 1 line

  stop abusing docstrings
........
  r85506 | benjamin.peterson | 2010-10-14 17:45:19 -0500 (Thu, 14 Oct 2010) | 1 line

  kill sibling import
........
  r85507 | benjamin.peterson | 2010-10-14 17:54:15 -0500 (Thu, 14 Oct 2010) | 1 line

  remove trailing whitespace
........
  r85508 | benjamin.peterson | 2010-10-14 17:55:28 -0500 (Thu, 14 Oct 2010) | 1 line

  typo
........

14 years agoMore proper closing of files
Antoine Pitrou [Thu, 14 Oct 2010 22:11:44 +0000 (22:11 +0000)]
More proper closing of files

14 years agorevert change that was in wrong branch
Benjamin Peterson [Thu, 14 Oct 2010 22:00:20 +0000 (22:00 +0000)]
revert change that was in wrong branch

14 years agoAdd test case for issue #9409, non-ascii char in doctest. It passes in 3.2 but needs...
Florent Xicluna [Thu, 14 Oct 2010 21:35:58 +0000 (21:35 +0000)]
Add test case for issue #9409, non-ascii char in doctest.  It passes in 3.2 but needs fixing in 2.7.

14 years agoExplicitly close some files (from issue #10093)
Antoine Pitrou [Thu, 14 Oct 2010 21:15:17 +0000 (21:15 +0000)]
Explicitly close some files (from issue #10093)

14 years agoFix the regex to match all kind of filenames, for interactive debugging in doctests...
Florent Xicluna [Thu, 14 Oct 2010 20:56:20 +0000 (20:56 +0000)]
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409)

14 years agoIncrease timeouts in test_ftplib (for very slow buildbots)
Antoine Pitrou [Thu, 14 Oct 2010 20:35:26 +0000 (20:35 +0000)]
Increase timeouts in test_ftplib (for very slow buildbots)

14 years agoOops
Antoine Pitrou [Thu, 14 Oct 2010 18:32:54 +0000 (18:32 +0000)]
Oops

14 years agoReally fix bug
Antoine Pitrou [Thu, 14 Oct 2010 18:31:39 +0000 (18:31 +0000)]
Really fix bug

14 years agoFix issue 10094, by narrowing down the test for PROXY environment variables.
Barry Warsaw [Thu, 14 Oct 2010 18:10:34 +0000 (18:10 +0000)]
Fix issue 10094, by narrowing down the test for PROXY environment variables.
Ubuntu 10.10 introduced $UBUNTU_MENUPROXY into the default user environment,
and that's what's tripping up the code.

14 years agoRun autoconf to update configure.in -> configure.
Barry Warsaw [Thu, 14 Oct 2010 17:38:46 +0000 (17:38 +0000)]
Run autoconf to update configure.in -> configure.

14 years agoIssue 9183: Intern UTC timezone.
Alexander Belopolsky [Thu, 14 Oct 2010 17:03:51 +0000 (17:03 +0000)]
Issue 9183: Intern UTC timezone.

14 years agoReplace the "compiler" resource with the more generic "cpu", so
Antoine Pitrou [Thu, 14 Oct 2010 15:34:31 +0000 (15:34 +0000)]
Replace the "compiler" resource with the more generic "cpu", so
as to mark CPU-heavy tests.

14 years ago- Issue #10094: Use versioned .so files on GNU/kfreeBSD and the GNU Hurd.
Matthias Klose [Thu, 14 Oct 2010 15:24:22 +0000 (15:24 +0000)]
- Issue #10094: Use versioned .so files on GNU/kfreeBSD and the GNU Hurd.

14 years agoIssue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
Antoine Pitrou [Thu, 14 Oct 2010 15:05:38 +0000 (15:05 +0000)]
Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
where supported by the system.  Patch by Nikita Vetoshkin.

14 years ago_Py_wgetcwd() decodes the path using _Py_char2wchar() to support surrogates
Victor Stinner [Thu, 14 Oct 2010 12:37:19 +0000 (12:37 +0000)]
_Py_wgetcwd() decodes the path using _Py_char2wchar() to support surrogates

14 years agoIssue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file
Victor Stinner [Thu, 14 Oct 2010 12:04:34 +0000 (12:04 +0000)]
Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file
descriptor.

14 years agoIssue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
Senthil Kumaran [Thu, 14 Oct 2010 11:57:35 +0000 (11:57 +0000)]
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol

14 years agoAdd make variable to allow testing of different interpreter flags in buildbot runs
Antoine Pitrou [Thu, 14 Oct 2010 11:29:16 +0000 (11:29 +0000)]
Add make variable to allow testing of different interpreter flags in buildbot runs

14 years agoInherit interpreter flags in parallel testing
Antoine Pitrou [Thu, 14 Oct 2010 11:12:00 +0000 (11:12 +0000)]
Inherit interpreter flags in parallel testing

14 years agoPy_Main() uses _Py_wchar2char() to encode the filename in error messages
Victor Stinner [Thu, 14 Oct 2010 10:51:24 +0000 (10:51 +0000)]
Py_Main() uses _Py_wchar2char() to encode the filename in error messages

14 years agotest_subprocess doesn't need to C locale to test os.environb
Victor Stinner [Thu, 14 Oct 2010 10:43:31 +0000 (10:43 +0000)]
test_subprocess doesn't need to C locale to test os.environb

Improve also the comment to explain why C locale is needed to test os.environ.

14 years agotest_subprocess: use C locale to get ascii locale encoding
Victor Stinner [Thu, 14 Oct 2010 10:38:17 +0000 (10:38 +0000)]
test_subprocess: use C locale to get ascii locale encoding

14 years ago#9964: fix running test_cmd_line_script under -O and -OO.
Georg Brandl [Thu, 14 Oct 2010 08:08:56 +0000 (08:08 +0000)]
#9964: fix running test_cmd_line_script under -O and -OO.

14 years ago#9964: fix running test_compileall under -O and -OO.
Georg Brandl [Thu, 14 Oct 2010 07:42:27 +0000 (07:42 +0000)]
#9964: fix running test_compileall under -O and -OO.

14 years agoBetter check for "any optimize option given".
Georg Brandl [Thu, 14 Oct 2010 07:34:56 +0000 (07:34 +0000)]
Better check for "any optimize option given".

14 years ago#9964: fix running test_xml_etree under -OO.
Georg Brandl [Thu, 14 Oct 2010 07:32:52 +0000 (07:32 +0000)]
#9964: fix running test_xml_etree under -OO.

14 years ago#9964: fix lib2to3 fixer fix_operator when running under -OO.
Georg Brandl [Thu, 14 Oct 2010 07:29:08 +0000 (07:29 +0000)]
#9964: fix lib2to3 fixer fix_operator when running under -OO.

14 years ago#9964: fix running test_import under -O or -OO.
Georg Brandl [Thu, 14 Oct 2010 07:24:28 +0000 (07:24 +0000)]
#9964: fix running test_import under -O or -OO.

14 years ago#9964: Fix failure of test_dis under -OO.
Georg Brandl [Thu, 14 Oct 2010 07:23:01 +0000 (07:23 +0000)]
#9964: Fix failure of test_dis under -OO.

14 years agoRemove unused imports.
Georg Brandl [Thu, 14 Oct 2010 07:17:44 +0000 (07:17 +0000)]
Remove unused imports.

14 years ago#9964: fix pdb failure to import under -OO. Warn the user that help is simply not...
Georg Brandl [Thu, 14 Oct 2010 07:14:31 +0000 (07:14 +0000)]
#9964: fix pdb failure to import under -OO. Warn the user that help is simply not available in this case.

14 years ago#9418: first step of moving private string methods to _string module.
Georg Brandl [Thu, 14 Oct 2010 07:04:07 +0000 (07:04 +0000)]
#9418: first step of moving private string methods to _string module.

14 years ago#1710703: write zipfile structures also in the case of closing a new, but empty,...
Georg Brandl [Thu, 14 Oct 2010 06:59:45 +0000 (06:59 +0000)]
#1710703: write zipfile structures also in the case of closing a new, but empty, archive.

14 years agoMention 2to3.
Georg Brandl [Thu, 14 Oct 2010 06:48:47 +0000 (06:48 +0000)]
Mention 2to3.

14 years ago#6825: small correction to split() docs.
Georg Brandl [Thu, 14 Oct 2010 06:46:08 +0000 (06:46 +0000)]
#6825: small correction to split() docs.

14 years ago#10046: small correction to atexit docs.
Georg Brandl [Thu, 14 Oct 2010 06:43:22 +0000 (06:43 +0000)]
#10046: small correction to atexit docs.

14 years ago#3865: add note about benchmarking with profilers, and move licensing stuff to bottom...
Georg Brandl [Thu, 14 Oct 2010 06:41:42 +0000 (06:41 +0000)]
#3865: add note about benchmarking with profilers, and move licensing stuff to bottom of document.

14 years ago#7642: update to os.system() docs.
Georg Brandl [Thu, 14 Oct 2010 06:35:53 +0000 (06:35 +0000)]
#7642: update to os.system() docs.

14 years agoFix (hopefully) occasional failures in test_threaded_import.
Antoine Pitrou [Wed, 13 Oct 2010 23:48:39 +0000 (23:48 +0000)]
Fix (hopefully) occasional failures in test_threaded_import.
`done` could be released multiple times because of concurrent
execution.  We convert it to an Event, where calling set()
multiple times is not a problem.

14 years agotest_sys: Remove workaround #8611
Victor Stinner [Wed, 13 Oct 2010 23:41:57 +0000 (23:41 +0000)]
test_sys: Remove workaround #8611

It looks like it is no more needed: Python 3.2 is slowly able to support
non-ascii paths with an ascii locale.

14 years agoRevert r85435 (and r85440): decode command line arguments from utf-8
Victor Stinner [Wed, 13 Oct 2010 23:24:06 +0000 (23:24 +0000)]
Revert r85435 (and r85440): decode command line arguments from utf-8

Python exits with a fatal error if the command line contains an undecodable
argument. PyUnicode_FromString() fails at the first undecodable byte because it
calls the error handler, but error handlers are not ready before Python
initialization.

14 years agoIssue 9005: Removed dead code.
Alexander Belopolsky [Wed, 13 Oct 2010 22:54:34 +0000 (22:54 +0000)]
Issue 9005: Removed dead code.

14 years agomain(): catch PyUnicode_FromString() failure (exit)
Victor Stinner [Wed, 13 Oct 2010 22:36:16 +0000 (22:36 +0000)]
main(): catch PyUnicode_FromString() failure (exit)

14 years agoput PYTHONIOENCODING in man page
Benjamin Peterson [Wed, 13 Oct 2010 22:20:15 +0000 (22:20 +0000)]
put PYTHONIOENCODING in man page

14 years agoIssue #9992: On Mac OS X, decode command line arguments from utf-8 instead of
Victor Stinner [Wed, 13 Oct 2010 22:15:06 +0000 (22:15 +0000)]
Issue #9992: On Mac OS X, decode command line arguments from utf-8 instead of
the locale encoding.

14 years agoconstify to appease compiler warnings
Benjamin Peterson [Wed, 13 Oct 2010 22:06:39 +0000 (22:06 +0000)]
constify to appease compiler warnings

14 years agoIssue #9992: Remove PYTHONFSENCODING environment variable.
Victor Stinner [Wed, 13 Oct 2010 22:02:27 +0000 (22:02 +0000)]
Issue #9992: Remove PYTHONFSENCODING environment variable.

14 years agoremove obselete import implementation #7287
Benjamin Peterson [Wed, 13 Oct 2010 21:59:36 +0000 (21:59 +0000)]
remove obselete import implementation #7287

14 years agoProtect test_smtpnet against connection failures
Antoine Pitrou [Wed, 13 Oct 2010 17:14:16 +0000 (17:14 +0000)]
Protect test_smtpnet against connection failures

14 years agoFollowup to #9437: since LDFLAGS is now appended to LDSHARED in the Makefile,
Antoine Pitrou [Wed, 13 Oct 2010 17:01:10 +0000 (17:01 +0000)]
Followup to #9437: since LDFLAGS is now appended to LDSHARED in the Makefile,
don't do in configure as well.

Hopefully this will solve a Makefile parsing issue on the FreeBSD buildbots.

14 years agoIssue #10041: The signature of optional arguments in socket.makefile()
Antoine Pitrou [Wed, 13 Oct 2010 16:17:14 +0000 (16:17 +0000)]
Issue #10041: The signature of optional arguments in socket.makefile()
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode.  Patch by Kai Zhu.

14 years agoIgnoring personal settings for Wing 3 project file
Michael Foord [Wed, 13 Oct 2010 13:23:20 +0000 (13:23 +0000)]
Ignoring personal settings for Wing 3 project file