]> granicus.if.org Git - python/log
python
9 years agoFixed markup and spaces in Misc/NEWS.
Serhiy Storchaka [Fri, 18 Dec 2015 17:37:02 +0000 (19:37 +0200)]
Fixed markup and spaces in Misc/NEWS.

9 years agoFixed markup and spaces in Misc/NEWS.
Serhiy Storchaka [Fri, 18 Dec 2015 17:36:24 +0000 (19:36 +0200)]
Fixed markup and spaces in Misc/NEWS.

9 years agoIssue #25899: Converted Objects/listsort.txt to UTF-8.
Serhiy Storchaka [Fri, 18 Dec 2015 11:23:33 +0000 (13:23 +0200)]
Issue #25899: Converted Objects/listsort.txt to UTF-8.
Original patch by Chris Angelico.

9 years agoIssue #25899: Fixed typo in .bzrignore.
Serhiy Storchaka [Fri, 18 Dec 2015 11:13:29 +0000 (13:13 +0200)]
Issue #25899: Fixed typo in .bzrignore.

9 years agoIssue #25899: Fixed typo in .bzrignore.
Serhiy Storchaka [Fri, 18 Dec 2015 11:12:33 +0000 (13:12 +0200)]
Issue #25899: Fixed typo in .bzrignore.

9 years agoIssue #25899: Converted non-ASCII characters in docstrings and manpage
Serhiy Storchaka [Fri, 18 Dec 2015 11:10:37 +0000 (13:10 +0200)]
Issue #25899: Converted non-ASCII characters in docstrings and manpage
to ASCII replacements.  Removed UTF-8 BOM from Misc/NEWS.
Original patch by Chris Angelico.

9 years agoIssue #25899: Converted non-ASCII characters in docstrings and manpage
Serhiy Storchaka [Fri, 18 Dec 2015 11:05:04 +0000 (13:05 +0200)]
Issue #25899: Converted non-ASCII characters in docstrings and manpage
to ASCII replacements.  Original patch by Chris Angelico.

9 years agoTest UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.
Serhiy Storchaka [Fri, 18 Dec 2015 08:23:29 +0000 (10:23 +0200)]
Test UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.

9 years agoTest UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.
Serhiy Storchaka [Fri, 18 Dec 2015 08:23:09 +0000 (10:23 +0200)]
Test UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.

9 years agoIssue #25889: Got rid of warning about mixing signed/unsigned char pointers.
Serhiy Storchaka [Fri, 18 Dec 2015 08:19:30 +0000 (10:19 +0200)]
Issue #25889: Got rid of warning about mixing signed/unsigned char pointers.

9 years agoIssue #25890: Removed yet one unused variable.
Serhiy Storchaka [Fri, 18 Dec 2015 08:06:58 +0000 (10:06 +0200)]
Issue #25890: Removed yet one unused variable.

9 years agoIssues #25890, #25891, #25892: Removed unused variables in Windows code.
Serhiy Storchaka [Fri, 18 Dec 2015 08:03:13 +0000 (10:03 +0200)]
Issues #25890, #25891, #25892: Removed unused variables in Windows code.
Reported by Alexander Riccio.

9 years agoIssue #25893: Removed unused variable reqdSize.
Serhiy Storchaka [Fri, 18 Dec 2015 07:54:59 +0000 (09:54 +0200)]
Issue #25893: Removed unused variable reqdSize.
Added test for return code for the last RegQueryValueExW.

9 years agoIssue #25893: Removed unused variable reqdSize.
Serhiy Storchaka [Fri, 18 Dec 2015 07:54:19 +0000 (09:54 +0200)]
Issue #25893: Removed unused variable reqdSize.
Added test for return code for the last RegQueryValueExW.

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 23:26:53 +0000 (18:26 -0500)]
Merge 3.5

9 years agodocs: Document ASYNC/AWAIT tokens (issue #25580)
Yury Selivanov [Thu, 17 Dec 2015 23:26:41 +0000 (18:26 -0500)]
docs: Document ASYNC/AWAIT tokens (issue #25580)

Initial patch by SilentGhost

9 years agoMerge from 3.5
Martin Panter [Thu, 17 Dec 2015 10:35:05 +0000 (10:35 +0000)]
Merge from 3.5

9 years agoMerge 3.4 into 3.5
Martin Panter [Thu, 17 Dec 2015 10:34:44 +0000 (10:34 +0000)]
Merge 3.4 into 3.5

9 years agoMerge typo fixes from 3.5
Martin Panter [Thu, 17 Dec 2015 10:20:21 +0000 (10:20 +0000)]
Merge typo fixes from 3.5

9 years agoFix a couple of typos in code comments
Martin Panter [Thu, 17 Dec 2015 10:18:28 +0000 (10:18 +0000)]
Fix a couple of typos in code comments

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 02:31:15 +0000 (21:31 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 02:31:04 +0000 (21:31 -0500)]
Merge 3.4

9 years agodocs/asyncio: Twek sections names per Nick Coghlan suggestion
Yury Selivanov [Thu, 17 Dec 2015 02:30:52 +0000 (21:30 -0500)]
docs/asyncio: Twek sections names per Nick Coghlan suggestion

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 01:41:39 +0000 (20:41 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 01:41:25 +0000 (20:41 -0500)]
Merge 3.4

9 years agoasyncio/tests: Fix a ResourceWarning due to unclosed loop
Yury Selivanov [Thu, 17 Dec 2015 01:41:11 +0000 (20:41 -0500)]
asyncio/tests: Fix a ResourceWarning due to unclosed loop

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 01:23:47 +0000 (20:23 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 01:23:37 +0000 (20:23 -0500)]
Merge 3.4

9 years agoasyncio/tests: Fix ResourceWarnings related to unclosed transports
Yury Selivanov [Thu, 17 Dec 2015 01:23:26 +0000 (20:23 -0500)]
asyncio/tests: Fix ResourceWarnings related to unclosed transports

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 00:51:31 +0000 (19:51 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 00:51:19 +0000 (19:51 -0500)]
Merge 3.4

9 years agoasyncio/tests: Fix some ResourceWarnings
Yury Selivanov [Thu, 17 Dec 2015 00:51:09 +0000 (19:51 -0500)]
asyncio/tests: Fix some ResourceWarnings

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 00:40:23 +0000 (19:40 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 00:40:11 +0000 (19:40 -0500)]
Merge 3.4

9 years agoasyncio/tests: Fix deprecation warning
Yury Selivanov [Thu, 17 Dec 2015 00:40:03 +0000 (19:40 -0500)]
asyncio/tests: Fix deprecation warning

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 00:36:01 +0000 (19:36 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 00:35:39 +0000 (19:35 -0500)]
Merge 3.4

9 years agoNormalize whitespace
Yury Selivanov [Thu, 17 Dec 2015 00:35:30 +0000 (19:35 -0500)]
Normalize whitespace

9 years agoMerge 3.5
Yury Selivanov [Thu, 17 Dec 2015 00:31:55 +0000 (19:31 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Thu, 17 Dec 2015 00:31:40 +0000 (19:31 -0500)]
Merge 3.4

9 years agoasyncio: Skip getaddrinfo if host is already resolved.
Yury Selivanov [Thu, 17 Dec 2015 00:31:17 +0000 (19:31 -0500)]
asyncio: Skip getaddrinfo if host is already resolved.

getaddrinfo takes an exclusive lock on some platforms, causing clients to queue
up waiting for the lock if many names are being resolved concurrently. Users
may want to handle name resolution in their own code, for the sake of caching,
using an alternate resolver, or to measure DNS duration separately from
connection duration. Skip getaddrinfo if the "host" passed into
create_connection is already resolved.

See https://github.com/python/asyncio/pull/302 for details.

Patch by A. Jesse Jiryu Davis.

9 years agoIssue #23788: Merge test_bad_address() cleanup from 3.5
Martin Panter [Wed, 16 Dec 2015 05:04:29 +0000 (05:04 +0000)]
Issue #23788: Merge test_bad_address() cleanup from 3.5

9 years agoIssue #23788: Merge redundant test_bad_address() into test_urllibnet
Martin Panter [Wed, 16 Dec 2015 04:36:20 +0000 (04:36 +0000)]
Issue #23788: Merge redundant test_bad_address() into test_urllibnet

In Python 2, these were duplicated; one for urllib.urlopen() and one for
urllib2.urlopen(). The test_urllibnet version has a better precondition to
avoid false failures with bad DNS, and the test_urllib2_localnet version had
a more up-to-date comment and domain name.

9 years agoIssue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable
Victor Stinner [Tue, 15 Dec 2015 10:29:59 +0000 (11:29 +0100)]
Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable
especially on slow buildbots

Use a pipe to synchronize the parent and the child processes.

9 years agoMinor tweek. Counting down rather than up reduces register pressure.
Raymond Hettinger [Tue, 15 Dec 2015 08:42:30 +0000 (00:42 -0800)]
Minor tweek.  Counting down rather than up reduces register pressure.

9 years agoMerge 3.5
Yury Selivanov [Tue, 15 Dec 2015 05:45:39 +0000 (00:45 -0500)]
Merge 3.5

9 years agodocs/asyncio: Update ensure_future & run_coroutine_threadsafe docs
Yury Selivanov [Tue, 15 Dec 2015 05:45:24 +0000 (00:45 -0500)]
docs/asyncio: Update ensure_future & run_coroutine_threadsafe docs

9 years agoMerge 3.5
Yury Selivanov [Tue, 15 Dec 2015 05:38:38 +0000 (00:38 -0500)]
Merge 3.5

9 years agodocs/whatsnew/3.5: Fix ref link
Yury Selivanov [Tue, 15 Dec 2015 05:38:28 +0000 (00:38 -0500)]
docs/whatsnew/3.5: Fix ref link

9 years agoMerge 3.5
Yury Selivanov [Tue, 15 Dec 2015 05:30:32 +0000 (00:30 -0500)]
Merge 3.5

9 years agowhatsnew/3.5: Mention new asyncio APIs in 3.5.1
Yury Selivanov [Tue, 15 Dec 2015 05:30:18 +0000 (00:30 -0500)]
whatsnew/3.5: Mention new asyncio APIs in 3.5.1

9 years agoIssue #11072: change the incorrect "deprecation" of ftplib dir() and nlst()
Gregory P. Smith [Mon, 14 Dec 2015 06:10:58 +0000 (22:10 -0800)]
Issue #11072: change the incorrect "deprecation" of ftplib dir() and nlst()
APIs into a note that mlsd() is a nicer API if the server supports
it.  They aren't deprecated, they are all different server commands.
Not all servers support all commands.

9 years agoIssue #11072: change the incorrect "deprecation" of ftplib dir() and nlst()
Gregory P. Smith [Mon, 14 Dec 2015 06:10:28 +0000 (22:10 -0800)]
Issue #11072: change the incorrect "deprecation" of ftplib dir() and nlst()
APIs into a note that mlsd() is a nicer API if the server supports
it.  They aren't deprecated, they are all different server commands.
Not all servers support all commands.

9 years ago* Re-fix issue #19284: Don't generate the no-op -R command line
Gregory P. Smith [Mon, 14 Dec 2015 04:15:26 +0000 (20:15 -0800)]
* Re-fix issue #19284: Don't generate the no-op -R command line
  parameter to "enable" the always on sys.flags.hash_randomization
  in _args_from_interpreter_flags() used by multiprocessing and
  some unittests.  This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.

9 years ago* Re-fix issue #19284: Don't generate the no-op -R command line
Gregory P. Smith [Mon, 14 Dec 2015 04:09:42 +0000 (20:09 -0800)]
* Re-fix issue #19284: Don't generate the no-op -R command line
  parameter to "enable" the always on sys.flags.hash_randomization
  in _args_from_interpreter_flags() used by multiprocessing and
  some unittests.  This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.

9 years agomerge head
Gregory P. Smith [Mon, 14 Dec 2015 04:06:35 +0000 (20:06 -0800)]
merge head

9 years agoRe-fix issue #19284: Don't generate the no-op -R command line
Gregory P. Smith [Mon, 14 Dec 2015 04:05:55 +0000 (20:05 -0800)]
Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests.  This simplifies the code.

9 years agoFix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
Gregory P. Smith [Mon, 14 Dec 2015 04:01:44 +0000 (20:01 -0800)]
Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
due to test_hash_randomization expecting a different seed per process.

9 years agoassert_python_ok docstring typo fix.
Gregory P. Smith [Mon, 14 Dec 2015 04:00:24 +0000 (20:00 -0800)]
assert_python_ok docstring typo fix.

9 years agoUndo inadvertent line swap
Raymond Hettinger [Mon, 14 Dec 2015 03:27:17 +0000 (19:27 -0800)]
Undo inadvertent line swap

9 years agoHoist constant expressions (so->table and so->mask) out of the inner-loop.
Raymond Hettinger [Mon, 14 Dec 2015 02:45:01 +0000 (18:45 -0800)]
Hoist constant expressions (so->table and so->mask) out of the inner-loop.

9 years agoMerge 3.5
Victor Stinner [Sun, 13 Dec 2015 23:22:10 +0000 (00:22 +0100)]
Merge 3.5

9 years agoIssue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir() (new try)
Victor Stinner [Sun, 13 Dec 2015 23:21:50 +0000 (00:21 +0100)]
Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir() (new try)

9 years agoMerge: #25495: Clarify b2a_base64 documentation vis 57 bytes.
R David Murray [Sun, 13 Dec 2015 23:11:07 +0000 (18:11 -0500)]
Merge: #25495: Clarify b2a_base64 documentation vis 57 bytes.

In 3.6 the parameter to control the appending of the newline was finally
added, so I dropped the historical note about why a new line was always
appended.

9 years agoMerge: #25495: Clarify b2a_base64 documentation vis 57 bytes.
R David Murray [Sun, 13 Dec 2015 23:04:56 +0000 (18:04 -0500)]
Merge: #25495: Clarify b2a_base64 documentation vis 57 bytes.

9 years ago#25495: Clarify b2a_base64 documentation vis 57 bytes.
R David Murray [Sun, 13 Dec 2015 23:04:27 +0000 (18:04 -0500)]
#25495: Clarify b2a_base64 documentation vis 57 bytes.

9 years ago(Merge 3.5) Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()
Victor Stinner [Sun, 13 Dec 2015 20:41:12 +0000 (21:41 +0100)]
(Merge 3.5) Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()

9 years agoIssue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()
Victor Stinner [Sun, 13 Dec 2015 20:40:26 +0000 (21:40 +0100)]
Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()

9 years agoMerge 3.5
Victor Stinner [Sun, 13 Dec 2015 20:26:34 +0000 (21:26 +0100)]
Merge 3.5

9 years agoIssue #25696: Don't ignore errors in 'make bininstall' on creating $(LIBPC) directory
Victor Stinner [Sun, 13 Dec 2015 20:26:17 +0000 (21:26 +0100)]
Issue #25696: Don't ignore errors in 'make bininstall' on creating $(LIBPC) directory

9 years ago(Merge 3.5) Issue #25696: Fix installation of Python on UNIX with make -j9.
Victor Stinner [Sun, 13 Dec 2015 20:21:36 +0000 (21:21 +0100)]
(Merge 3.5) Issue #25696: Fix installation of Python on UNIX with make -j9.

9 years agoIssue #25696: Fix installation of Python on UNIX with make -j9.
Victor Stinner [Sun, 13 Dec 2015 20:20:36 +0000 (21:20 +0100)]
Issue #25696: Fix installation of Python on UNIX with make -j9.

9 years agoFixes #25844: Merged fix from 3.5.
Vinay Sajip [Sun, 13 Dec 2015 09:45:19 +0000 (09:45 +0000)]
Fixes #25844: Merged fix from 3.5.

9 years agoFixes #25844: Corrected =/== typo potentially leading to crash in launcher.
Vinay Sajip [Sun, 13 Dec 2015 09:44:15 +0000 (09:44 +0000)]
Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.

9 years agoFixes #25844: Corrected =/== typo potentially leading to crash in launcher.
Vinay Sajip [Sun, 13 Dec 2015 09:41:29 +0000 (09:41 +0000)]
Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.

9 years agoSync asyncio with upstream git repo (conditional import in test_pep492.py). (Merge...
Guido van Rossum [Sun, 13 Dec 2015 01:02:15 +0000 (17:02 -0800)]
Sync asyncio with upstream git repo (conditional import in test_pep492.py). (Merge 3.5->3.6)

9 years agoSync asyncio with upstream git repo (conditional import in test_pep492.py).
Guido van Rossum [Sun, 13 Dec 2015 01:01:47 +0000 (17:01 -0800)]
Sync asyncio with upstream git repo (conditional import in test_pep492.py).

9 years agoIssue #19771: Merge runpy error adjustment from 3.5
Martin Panter [Sat, 12 Dec 2015 07:16:33 +0000 (07:16 +0000)]
Issue #19771: Merge runpy error adjustment from 3.5

9 years agoIssue #25845: Merge PyLong_Check() cleanup from 3.5
Martin Panter [Sat, 12 Dec 2015 07:14:03 +0000 (07:14 +0000)]
Issue #25845: Merge PyLong_Check() cleanup from 3.5

9 years agoIssue #25809: Merge French locale test from 3.5
Martin Panter [Sat, 12 Dec 2015 07:13:10 +0000 (07:13 +0000)]
Issue #25809: Merge French locale test from 3.5

9 years agoIssue #19771: Omit irrelevant message if package could not be initialized
Martin Panter [Sat, 12 Dec 2015 06:58:55 +0000 (06:58 +0000)]
Issue #19771: Omit irrelevant message if package could not be initialized

9 years agoIssue #25845: Drop redundant checks leftover from int to long conversion
Martin Panter [Sat, 12 Dec 2015 06:57:13 +0000 (06:57 +0000)]
Issue #25845: Drop redundant checks leftover from int to long conversion

9 years agoIssue #25809: Skip testing platform-dependent French thousands separator
Martin Panter [Sat, 12 Dec 2015 06:53:34 +0000 (06:53 +0000)]
Issue #25809: Skip testing platform-dependent French thousands separator

9 years agoIssue #25809: Skip testing platform-dependent French thousands separator
Martin Panter [Sat, 12 Dec 2015 06:53:34 +0000 (06:53 +0000)]
Issue #25809: Skip testing platform-dependent French thousands separator

9 years agoIssue #25755: Move PropertyWritableDoc into the test case
Berker Peksag [Fri, 11 Dec 2015 21:48:37 +0000 (23:48 +0200)]
Issue #25755: Move PropertyWritableDoc into the test case

This fixes a test failure in refleak mode because
test_property_decorator_doc_writable no longer modifies
the class in module level.

Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)

9 years agoIssue #25755: Move PropertyWritableDoc into the test case
Berker Peksag [Fri, 11 Dec 2015 21:48:13 +0000 (23:48 +0200)]
Issue #25755: Move PropertyWritableDoc into the test case

This fixes a test failure in refleak mode because
test_property_decorator_doc_writable no longer modifies
the class in module level.

Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)

9 years agoMerge 3.5
Yury Selivanov [Fri, 11 Dec 2015 16:34:30 +0000 (11:34 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Fri, 11 Dec 2015 16:34:11 +0000 (11:34 -0500)]
Merge 3.4

9 years agoasyncio: Make Tasks check if Futures are attached to the same event loop
Yury Selivanov [Fri, 11 Dec 2015 16:33:59 +0000 (11:33 -0500)]
asyncio: Make Tasks check if Futures are attached to the same event loop

See https://github.com/python/asyncio/pull/303 for details

9 years agoMerge 3.5
Yury Selivanov [Fri, 11 Dec 2015 16:33:21 +0000 (11:33 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Fri, 11 Dec 2015 16:33:08 +0000 (11:33 -0500)]
Merge 3.4

9 years agoasyncio: Sync with github
Yury Selivanov [Fri, 11 Dec 2015 16:32:59 +0000 (11:32 -0500)]
asyncio: Sync with github

9 years agoIssue #25764: Merge fix for root user from 3.5
Martin Panter [Fri, 11 Dec 2015 05:42:26 +0000 (05:42 +0000)]
Issue #25764: Merge fix for root user from 3.5

9 years agoIssue #22341: Merge CRC doc from 3.5
Martin Panter [Fri, 11 Dec 2015 05:41:48 +0000 (05:41 +0000)]
Issue #22341: Merge CRC doc from 3.5

9 years agoIssue #25764: Skip fork failure test when run as root
Martin Panter [Fri, 11 Dec 2015 05:40:14 +0000 (05:40 +0000)]
Issue #25764: Skip fork failure test when run as root

9 years agoIssue #22341: Drop Python 2 workaround and document CRC initial value
Martin Panter [Fri, 11 Dec 2015 05:19:29 +0000 (05:19 +0000)]
Issue #22341: Drop Python 2 workaround and document CRC initial value

Also align the parameter naming in binascii to be consistent with zlib.

9 years agoIssue #14285: Merge runpy fix from 3.5
Martin Panter [Fri, 11 Dec 2015 03:35:31 +0000 (03:35 +0000)]
Issue #14285: Merge runpy fix from 3.5

9 years agoIssue #25638: Optimized ElementTree parsing; it is now 10% faster.
Serhiy Storchaka [Thu, 10 Dec 2015 07:51:53 +0000 (09:51 +0200)]
Issue #25638: Optimized ElementTree parsing; it is now 10% faster.

9 years agoIssue #14285: Do not catch exceptions initializing any ancestor package
Martin Panter [Thu, 10 Dec 2015 06:47:06 +0000 (06:47 +0000)]
Issue #14285: Do not catch exceptions initializing any ancestor package

The previous fix only handled the case of the parent package of __main__
failing to initialize.

Also make the "Error while finding spec" formatting slightly more appealing,
and document and test that the module name must be absolute.

9 years agoFixed possible leaks in ElementTree parser.
Serhiy Storchaka [Wed, 9 Dec 2015 17:45:07 +0000 (19:45 +0200)]
Fixed possible leaks in ElementTree parser.