]> granicus.if.org Git - python/log
python
13 years agoClean up mocking of stdout and stdin in packaging tests.
Éric Araujo [Sun, 6 Nov 2011 10:32:47 +0000 (11:32 +0100)]
Clean up mocking of stdout and stdin in packaging tests.

Running with regrtest does not show spurious output or unrestored
sys.std* objects; sometimes running with make test is different, I’ll
watch the buildbots.

In addition, update the create module to use logging.

13 years agoMinor tweak to packaging tests.
Éric Araujo [Sun, 6 Nov 2011 09:48:55 +0000 (10:48 +0100)]
Minor tweak to packaging tests.

When an option is changed on a command object, calling ensure_finalized
for a second time will not run finalize_options again, because
ensure_finalized is a no-op the second time.  By resetting the finalized
attribute, we can be sure that whatever computation takes place in
finalize_options will happen again.

(In test_command_clean, I removed two lines that were a no-op.)

13 years agoUndo potentially confusing name change in packaging.
Éric Araujo [Sun, 6 Nov 2011 05:54:05 +0000 (06:54 +0100)]
Undo potentially confusing name change in packaging.

This method was named reinitialize_command in distutils and accompanied
by a comment suggesting to change it to get_reinitialized_command.
Following that, I did the change for distutils2, but it proved
confusing: The Distribution object has an internal cache of command
objects, to make sure only one instance is ever used, and the name
get_reinitialized_command could suggest that the object returned was
independent of that cache, which it was not.  I’m reverting the name
change to make code clearer.

13 years agoMake sure packaging tests that register custom commands also clear them
Éric Araujo [Sun, 6 Nov 2011 06:01:18 +0000 (07:01 +0100)]
Make sure packaging tests that register custom commands also clear them

13 years agoRemove obsolete/duplicate entries
Éric Araujo [Sun, 6 Nov 2011 04:35:32 +0000 (05:35 +0100)]
Remove obsolete/duplicate entries

13 years agoTry to fix buildbot failures from #13193
Éric Araujo [Sat, 5 Nov 2011 16:51:52 +0000 (17:51 +0100)]
Try to fix buildbot failures from #13193

13 years agoasyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
Charles-François Natali [Sat, 5 Nov 2011 13:16:01 +0000 (14:16 +0100)]
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.

13 years agoIssue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 08:21:49 +0000 (10:21 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()

13 years agoIssue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 08:18:50 +0000 (10:18 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()

13 years agoFix Maildir initialization so that maildir contents are read correctly.
Petri Lehtinen [Sat, 5 Nov 2011 07:45:53 +0000 (09:45 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.

Closes #13254.

13 years agoFix Maildir initialization so that maildir contents are read correctly.
Petri Lehtinen [Sat, 5 Nov 2011 07:44:59 +0000 (09:44 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.

Closes #13254.

13 years agoOops, really fix gdb/libpython.py for not ready Unicode strings
Victor Stinner [Fri, 4 Nov 2011 21:34:01 +0000 (22:34 +0100)]
Oops, really fix gdb/libpython.py for not ready Unicode strings

13 years agoIssue #13343: Fix a SystemError when a lambda expression uses a global
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:29:24 +0000 (22:29 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)

13 years agoIssue #13343: Fix a SystemError when a lambda expression uses a global
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:17:45 +0000 (22:17 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)

13 years agoFix test_urllib2 error on Windows in relation with issue #13287.
Florent Xicluna [Fri, 4 Nov 2011 21:15:37 +0000 (22:15 +0100)]
Fix test_urllib2 error on Windows in relation with issue #13287.

13 years agoMerge heads
Petri Lehtinen [Fri, 4 Nov 2011 20:36:54 +0000 (22:36 +0200)]
Merge heads

13 years agoAvoid the Py_UNICODE type in codecs.c
Victor Stinner [Fri, 4 Nov 2011 20:36:35 +0000 (21:36 +0100)]
Avoid the Py_UNICODE type in codecs.c

13 years agoPyCodec_XMLCharRefReplaceError(): Remove unused variable
Victor Stinner [Fri, 4 Nov 2011 20:29:10 +0000 (21:29 +0100)]
PyCodec_XMLCharRefReplaceError(): Remove unused variable

13 years agoIssue #3067: Fix the error raised by locale.setlocale()
Petri Lehtinen [Fri, 4 Nov 2011 20:21:52 +0000 (22:21 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()

13 years agoIssue #3067: Fix the error raised by locale.setlocale()
Petri Lehtinen [Fri, 4 Nov 2011 19:35:07 +0000 (21:35 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()

13 years agoFix gdb/libpython.py for not ready Unicode strings
Victor Stinner [Fri, 4 Nov 2011 19:54:05 +0000 (20:54 +0100)]
Fix gdb/libpython.py for not ready Unicode strings

_PyUnicode_CheckConsistency() checks also hash and length value for not ready
Unicode strings.

13 years agoReplace tabs by spaces
Victor Stinner [Fri, 4 Nov 2011 19:06:39 +0000 (20:06 +0100)]
Replace tabs by spaces

13 years agoDrop Py_UNICODE based encode exceptions.
Martin v. Löwis [Fri, 4 Nov 2011 18:04:15 +0000 (19:04 +0100)]
Drop Py_UNICODE based encode exceptions.

13 years agoPort code page codec to Unicode API.
Martin v. Löwis [Fri, 4 Nov 2011 17:23:06 +0000 (18:23 +0100)]
Port code page codec to Unicode API.

13 years agoFix C89 incompatibility.
Martin v. Löwis [Fri, 4 Nov 2011 11:26:49 +0000 (12:26 +0100)]
Fix C89 incompatibility.

13 years agoPort error handlers from Py_UNICODE indexing to code point indexing.
Martin v. Löwis [Fri, 4 Nov 2011 10:16:41 +0000 (11:16 +0100)]
Port error handlers from Py_UNICODE indexing to code point indexing.

13 years agoMerge 3.2: issue #13140
Florent Xicluna [Fri, 4 Nov 2011 09:22:57 +0000 (10:22 +0100)]
Merge 3.2: issue #13140

13 years agoCloses #13140: Fix the daemon_threads attribute of ThreadingMixIn.
Florent Xicluna [Fri, 4 Nov 2011 09:16:28 +0000 (10:16 +0100)]
Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn.

13 years agoIssue #12342: Fix compilation on Mac OS X
Victor Stinner [Fri, 4 Nov 2011 08:49:24 +0000 (09:49 +0100)]
Issue #12342: Fix compilation on Mac OS X

13 years agoRemove redundant imports.
Florent Xicluna [Fri, 4 Nov 2011 07:29:17 +0000 (08:29 +0100)]
Remove redundant imports.

13 years agoDrop unused import in unittest package.
Florent Xicluna [Fri, 4 Nov 2011 07:25:54 +0000 (08:25 +0100)]
Drop unused import in unittest package.

13 years ago(Merge 3.2) Issue #13339.
Ross Lagerwall [Fri, 4 Nov 2011 05:15:35 +0000 (07:15 +0200)]
(Merge 3.2) Issue #13339.

13 years agoIssue #13339: Fix compile error in posixmodule.c due to missing semicolon.
Ross Lagerwall [Fri, 4 Nov 2011 05:09:14 +0000 (07:09 +0200)]
Issue #13339: Fix compile error in posixmodule.c due to missing semicolon.
Thanks to Robert Xiao.

13 years ago(Merge 3.2) Issue #12342: Improve _tkinter error message on unencodable character
Victor Stinner [Thu, 3 Nov 2011 23:43:35 +0000 (00:43 +0100)]
(Merge 3.2) Issue #12342: Improve _tkinter error message on unencodable character

13 years agoIssue #12342: Improve _tkinter error message on unencodable character
Victor Stinner [Thu, 3 Nov 2011 23:36:46 +0000 (00:36 +0100)]
Issue #12342: Improve _tkinter error message on unencodable character

13 years agoFix a compiler warning in unicode_encode_ucs1()
Victor Stinner [Thu, 3 Nov 2011 23:28:50 +0000 (00:28 +0100)]
Fix a compiler warning in unicode_encode_ucs1()

13 years agoFix PyUnicode_EncodeCharmap()
Victor Stinner [Thu, 3 Nov 2011 23:24:51 +0000 (00:24 +0100)]
Fix PyUnicode_EncodeCharmap()

13 years agoReplace PyUnicodeObject type by PyObject
Victor Stinner [Thu, 3 Nov 2011 23:22:48 +0000 (00:22 +0100)]
Replace PyUnicodeObject type by PyObject

 * _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
 * Remove now useless casts to PyObject*

13 years agoCleanup decode_code_page_stateful() and encode_code_page()
Victor Stinner [Thu, 3 Nov 2011 23:05:13 +0000 (00:05 +0100)]
Cleanup decode_code_page_stateful() and encode_code_page()

 * Fix decode_code_page_errors() result
 * Inline decode_code_page() and encode_code_page_chunk()
 * Replace the PyUnicodeObject type by PyObject

13 years agoOversight in previous commit for test_pep277.
Florent Xicluna [Thu, 3 Nov 2011 22:44:15 +0000 (23:44 +0100)]
Oversight in previous commit for test_pep277.

13 years agoUse PEP-3151 exceptions for test_pep277.
Florent Xicluna [Thu, 3 Nov 2011 22:11:14 +0000 (23:11 +0100)]
Use PEP-3151 exceptions for test_pep277.

13 years agoAdapt the code page encoder to the new unicode_encode_call_errorhandler()
Victor Stinner [Thu, 3 Nov 2011 21:32:33 +0000 (22:32 +0100)]
Adapt the code page encoder to the new unicode_encode_call_errorhandler()

The code is not correct, but at least it doesn't crash anymore.

13 years ago(Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, instead
Victor Stinner [Thu, 3 Nov 2011 19:36:55 +0000 (20:36 +0100)]
(Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, instead
of a Unicode string.

This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.

13 years agoIssue #10570: curses.putp() is now expecting a byte string, instead of a
Victor Stinner [Thu, 3 Nov 2011 19:35:40 +0000 (20:35 +0100)]
Issue #10570: curses.putp() is now expecting a byte string, instead of a
Unicode string.

This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.

13 years agoMerge 3.2
Éric Araujo [Thu, 3 Nov 2011 15:45:33 +0000 (16:45 +0100)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Thu, 3 Nov 2011 15:44:13 +0000 (16:44 +0100)]
Branch merge

13 years agoBranch merge
Éric Araujo [Thu, 3 Nov 2011 15:27:57 +0000 (16:27 +0100)]
Branch merge

13 years agoActually check the contents of the file created by packaging’s bdist_dumb
Éric Araujo [Thu, 3 Nov 2011 05:00:02 +0000 (06:00 +0100)]
Actually check the contents of the file created by packaging’s bdist_dumb

13 years agoMerge follow-up for #11254 and other changes from 3.2
Éric Araujo [Thu, 3 Nov 2011 04:17:11 +0000 (05:17 +0100)]
Merge follow-up for #11254 and other changes from 3.2

13 years agoImprove byte-compilation in packaging to be independent of -O or -B.
Éric Araujo [Thu, 3 Nov 2011 04:08:28 +0000 (05:08 +0100)]
Improve byte-compilation in packaging to be independent of -O or -B.

The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs).  Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.

On a related topic, I also removed the code that prevented byte
compilation under python -B.  The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason.  I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.

Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc.  It clears up a
misunderstanding that I (and maybe other people) had.

13 years agoAvoid relying on the default reST role in logging library doc
Éric Araujo [Thu, 3 Nov 2011 03:35:20 +0000 (04:35 +0100)]
Avoid relying on the default reST role in logging library doc

13 years agoFix incorrect docstring I changed a while back.
Éric Araujo [Thu, 3 Nov 2011 03:34:09 +0000 (04:34 +0100)]
Fix incorrect docstring I changed a while back.

New wording is taken straight from the PEP, so this time should be good
:)

13 years agoMore fixes for PEP 3147 compliance in distutils (#11254)
Éric Araujo [Thu, 3 Nov 2011 02:45:33 +0000 (03:45 +0100)]
More fixes for PEP 3147 compliance in distutils (#11254)

13 years agoAdd signatures to the docstring of functions added to imp by PEP 3147
Éric Araujo [Thu, 3 Nov 2011 02:38:44 +0000 (03:38 +0100)]
Add signatures to the docstring of functions added to imp by PEP 3147

13 years agoState explicitely that PYTHONDONTWRITEBYTECODE is equivalent to -B
Éric Araujo [Thu, 3 Nov 2011 02:20:43 +0000 (03:20 +0100)]
State explicitely that PYTHONDONTWRITEBYTECODE is equivalent to -B

13 years agoIssue #13307: fix bdist_rpm test failures
Antoine Pitrou [Thu, 3 Nov 2011 01:46:52 +0000 (02:46 +0100)]
Issue #13307: fix bdist_rpm test failures

13 years agoIssue #13307: fix bdist_rpm test failures
Antoine Pitrou [Thu, 3 Nov 2011 01:45:46 +0000 (02:45 +0100)]
Issue #13307: fix bdist_rpm test failures

13 years agoMinor code reorganization in one packaging test file
Éric Araujo [Wed, 2 Nov 2011 23:20:03 +0000 (00:20 +0100)]
Minor code reorganization in one packaging test file

13 years agoFix typo “seperate”
Éric Araujo [Wed, 2 Nov 2011 23:13:05 +0000 (00:13 +0100)]
Fix typo “seperate”

13 years agoFix typos in recent NEWS entries
Éric Araujo [Wed, 2 Nov 2011 23:12:39 +0000 (00:12 +0100)]
Fix typos in recent NEWS entries

13 years agoFix typo
Éric Araujo [Wed, 2 Nov 2011 23:08:48 +0000 (00:08 +0100)]
Fix typo

13 years ago(Merge 3.2) Issue #10570: curses.tigetstr() is now expecting a byte string,
Victor Stinner [Wed, 2 Nov 2011 22:47:58 +0000 (23:47 +0100)]
(Merge 3.2) Issue #10570: curses.tigetstr() is now expecting a byte string,
instead of a Unicode string.

This is an incompatible change, but the previous behaviour was completly wrong.

13 years agoIssue #10570: curses.tigetstr() is now expecting a byte string, instead of a
Victor Stinner [Wed, 2 Nov 2011 22:45:29 +0000 (23:45 +0100)]
Issue #10570: curses.tigetstr() is now expecting a byte string, instead of a
Unicode string.

This is an incompatible change, but the previous behaviour was completly wrong.

13 years agoFix a compile error (apparently Windows only) introduced in 295fdfd4f422
Brian Curtin [Wed, 2 Nov 2011 20:09:37 +0000 (15:09 -0500)]
Fix a compile error (apparently Windows only) introduced in 295fdfd4f422

13 years agotest_asyncore: Actually try to received OOB data.
Charles-François Natali [Wed, 2 Nov 2011 19:30:59 +0000 (20:30 +0100)]
test_asyncore: Actually try to received OOB data.

13 years agoIssue #13308: Fix test_httpservers failures when run as root.
Charles-François Natali [Wed, 2 Nov 2011 18:36:02 +0000 (19:36 +0100)]
Issue #13308: Fix test_httpservers failures when run as root.

13 years agoIssue #13308: Fix test_httpservers failures when run as root.
Charles-François Natali [Wed, 2 Nov 2011 18:35:14 +0000 (19:35 +0100)]
Issue #13308: Fix test_httpservers failures when run as root.

13 years agoIssue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
Charles-François Natali [Wed, 2 Nov 2011 17:58:25 +0000 (18:58 +0100)]
Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.

13 years ago#13295: http.server now produces valid HTML 4.01 strict.
Ezio Melotti [Wed, 2 Nov 2011 17:33:29 +0000 (19:33 +0200)]
#13295: http.server now produces valid HTML 4.01 strict.

13 years agoCleanups in distutils tests.
Éric Araujo [Wed, 2 Nov 2011 17:05:41 +0000 (18:05 +0100)]
Cleanups in distutils tests.

- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it smells like a disabled test
  method instead of an helper method
- Fix some idioms (assertIn, addCleanup)

13 years agoPort UCS1 and charmap codecs to new API.
Martin v. Löwis [Wed, 2 Nov 2011 17:02:51 +0000 (18:02 +0100)]
Port UCS1 and charmap codecs to new API.

13 years agoIntroduce PyObject* API for raising encode errors.
Martin v. Löwis [Wed, 2 Nov 2011 11:45:42 +0000 (12:45 +0100)]
Introduce PyObject* API for raising encode errors.

13 years agoIssue #13312: skip the failing negative years for now.
Florent Xicluna [Wed, 2 Nov 2011 07:13:43 +0000 (08:13 +0100)]
Issue #13312: skip the failing negative years for now.

13 years agoActually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312).
Florent Xicluna [Wed, 2 Nov 2011 02:22:15 +0000 (03:22 +0100)]
Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312).

13 years agoIssue #13312: skip the single failing value for now.
Florent Xicluna [Wed, 2 Nov 2011 00:28:17 +0000 (01:28 +0100)]
Issue #13312: skip the single failing value for now.

13 years agoCloses #2892: preserve iterparse events in case of SyntaxError.
Florent Xicluna [Tue, 1 Nov 2011 22:31:09 +0000 (23:31 +0100)]
Closes #2892: preserve iterparse events in case of SyntaxError.

13 years agoReplace Py_UNICODE_strchr with PyUnicode_FindChar.
Martin v. Löwis [Tue, 1 Nov 2011 17:42:23 +0000 (18:42 +0100)]
Replace Py_UNICODE_strchr with PyUnicode_FindChar.

13 years agoAdditional tests for negative years.
Florent Xicluna [Tue, 1 Nov 2011 22:42:05 +0000 (23:42 +0100)]
Additional tests for negative years.

13 years agoMerge 3.2: issue #2892
Florent Xicluna [Tue, 1 Nov 2011 22:33:14 +0000 (23:33 +0100)]
Merge 3.2: issue #2892

13 years agoMerge test improvements from 3.2.
Ezio Melotti [Tue, 1 Nov 2011 16:58:19 +0000 (18:58 +0200)]
Merge test improvements from 3.2.

13 years agoMake sure that the tolerant parser still parses valid HTML correctly.
Ezio Melotti [Tue, 1 Nov 2011 16:57:15 +0000 (18:57 +0200)]
Make sure that the tolerant parser still parses valid HTML correctly.

13 years agoLowercase the test name, to run last.
Florent Xicluna [Tue, 1 Nov 2011 16:42:24 +0000 (17:42 +0100)]
Lowercase the test name, to run last.

13 years agoReplace temporary tests with the real test case for issue #13309 on Gentoo.
Florent Xicluna [Tue, 1 Nov 2011 15:58:54 +0000 (16:58 +0100)]
Replace temporary tests with the real test case for issue #13309 on Gentoo.

13 years ago'HTTPSHandler' and not the type.
Senthil Kumaran [Tue, 1 Nov 2011 15:57:57 +0000 (23:57 +0800)]
'HTTPSHandler' and not the type.

13 years agoAppend HTTPSHandler to __all__ when it is available.
Senthil Kumaran [Tue, 1 Nov 2011 15:49:46 +0000 (23:49 +0800)]
Append HTTPSHandler to __all__ when it is available.

13 years agoissue13287 - Define __all__ for urllib.request and urllib.error and expose only
Senthil Kumaran [Tue, 1 Nov 2011 15:20:31 +0000 (23:20 +0800)]
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
the relevant module. Other cleanup improvements. Patch by flox.

13 years agoTroubleshoot issue #13309 on Gentoo buildbot.
Florent Xicluna [Tue, 1 Nov 2011 15:07:23 +0000 (16:07 +0100)]
Troubleshoot issue #13309 on Gentoo buildbot.

13 years agoAdd temporary tests to troubleshoot issue #13309 on Gentoo buildbot.
Florent Xicluna [Tue, 1 Nov 2011 14:12:34 +0000 (15:12 +0100)]
Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot.

13 years agoTest the year range supported by time.strftime() and time.asctime().
Florent Xicluna [Tue, 1 Nov 2011 13:11:34 +0000 (14:11 +0100)]
Test the year range supported by time.strftime() and time.asctime().

13 years agoMerge test fixes from 3.2.
Ezio Melotti [Tue, 1 Nov 2011 13:02:16 +0000 (15:02 +0200)]
Merge test fixes from 3.2.

13 years agoAvoid reusing the same collector in the tests.
Ezio Melotti [Tue, 1 Nov 2011 13:00:59 +0000 (15:00 +0200)]
Avoid reusing the same collector in the tests.

13 years ago#12008: merge with 3.2.
Ezio Melotti [Tue, 1 Nov 2011 12:43:51 +0000 (14:43 +0200)]
#12008: merge with 3.2.

13 years ago#12008: add a test.
Ezio Melotti [Tue, 1 Nov 2011 12:42:54 +0000 (14:42 +0200)]
#12008: add a test.

13 years ago#670664: Fix HTMLParser to correctly handle the content of ``<script>...</script...
Ezio Melotti [Tue, 1 Nov 2011 12:12:22 +0000 (14:12 +0200)]
#670664: Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.

13 years agocorrect signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
Sandro Tosi [Tue, 1 Nov 2011 09:32:05 +0000 (10:32 +0100)]
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@

13 years agoIssue #13304: Skip test case if user site-packages disabled (-s or
Ned Deily [Mon, 31 Oct 2011 23:16:35 +0000 (16:16 -0700)]
Issue #13304: Skip test case if user site-packages disabled (-s or
PYTHONNOUSERSITE).  (Patch by Carl Meyer)

13 years agoFix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
Senthil Kumaran [Mon, 31 Oct 2011 17:35:17 +0000 (01:35 +0800)]
Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
even when reporthook is None. Patch by Jyrki Pulliainen.

13 years agouse diveintopython.net now that DIP.org returns 410; thanks to Josh Gachnang from...
Sandro Tosi [Mon, 31 Oct 2011 16:46:04 +0000 (17:46 +0100)]
use diveintopython.net now that DIP.org returns 410; thanks to Josh Gachnang from docs@

13 years agoremove confusing paragraph (as part of r87523); thanks to AJ Hill from docs@
Sandro Tosi [Mon, 31 Oct 2011 16:15:39 +0000 (17:15 +0100)]
remove confusing paragraph (as part of r87523); thanks to AJ Hill from docs@

13 years agoCloses #13283: removal of two unused variable in locale.py
Jesus Cea [Mon, 31 Oct 2011 15:03:34 +0000 (16:03 +0100)]
Closes #13283: removal of two unused variable in locale.py