Éric Araujo
261ccdce48
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.)
2011-11-06 10:48:55 +01:00
Éric Araujo
a963e0d917
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.
2011-11-06 06:54:05 +01:00
Éric Araujo
4e377f215d
Make sure packaging tests that register custom commands also clear them
2011-11-06 07:01:18 +01:00
Éric Araujo
8e5d7cbca1
Remove obsolete/duplicate entries
2011-11-06 05:35:32 +01:00
Éric Araujo
03b0819389
Try to fix buildbot failures from #13193
2011-11-05 17:51:52 +01:00
Charles-François Natali
88c2e45367
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
...
to poll(2): don't set them.
2011-11-05 14:16:01 +01:00
Petri Lehtinen
064e39330d
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:22:03 +02:00
Petri Lehtinen
395ca72380
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:21:16 +02:00
Petri Lehtinen
8c481b6212
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:46:10 +02:00
Petri Lehtinen
8c482ee955
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:44:59 +02:00
Victor Stinner
f16a350baf
Oops, really fix gdb/libpython.py for not ready Unicode strings
2011-11-04 22:34:01 +01:00
Amaury Forgeot d'Arc
9028a10144
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)
2011-11-04 22:29:24 +01:00
Amaury Forgeot d'Arc
97c1bef6a4
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)
2011-11-04 22:17:45 +01:00
Florent Xicluna
3dbb1f17cb
Fix test_urllib2 error on Windows in relation with issue #13287 .
2011-11-04 22:15:37 +01:00
Petri Lehtinen
245a94b6e8
Merge heads
2011-11-04 22:36:56 +02:00
Victor Stinner
c06bb7affd
Avoid the Py_UNICODE type in codecs.c
2011-11-04 21:36:35 +01:00
Victor Stinner
b31f1bcd99
PyCodec_XMLCharRefReplaceError(): Remove unused variable
2011-11-04 21:29:10 +01:00
Petri Lehtinen
c9f38462ee
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:22:03 +02:00
Petri Lehtinen
3c85fe07f4
Issue #3067 : Fix the error raised by locale.setlocale()
2011-11-04 22:21:07 +02:00
Victor Stinner
e30c0a1014
Fix gdb/libpython.py for not ready Unicode strings
...
_PyUnicode_CheckConsistency() checks also hash and length value for not ready
Unicode strings.
2011-11-04 20:54:05 +01:00
Victor Stinner
2fc507fe45
Replace tabs by spaces
2011-11-04 20:06:39 +01:00
Martin v. Löwis
12be46ca84
Drop Py_UNICODE based encode exceptions.
2011-11-04 19:04:15 +01:00
Martin v. Löwis
3d325191bf
Port code page codec to Unicode API.
2011-11-04 18:23:06 +01:00
Martin v. Löwis
8ba79306d1
Fix C89 incompatibility.
2011-11-04 12:26:49 +01:00
Martin v. Löwis
b09af03b8a
Port error handlers from Py_UNICODE indexing to code point indexing.
2011-11-04 11:16:41 +01:00
Florent Xicluna
495dcbd5c1
Merge 3.2: issue #13140
2011-11-04 10:22:57 +01:00
Florent Xicluna
12b66b5217
Closes #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:16:28 +01:00
Victor Stinner
3d7acb08c4
Issue #12342 : Fix compilation on Mac OS X
2011-11-04 09:49:24 +01:00
Florent Xicluna
54540ec917
Remove redundant imports.
2011-11-04 08:29:17 +01:00
Florent Xicluna
c53ae58954
Drop unused import in unittest package.
2011-11-04 08:25:54 +01:00
Ross Lagerwall
ab1078b987
(Merge 3.2) Issue #13339 .
2011-11-04 07:15:35 +02:00
Ross Lagerwall
dcfde5aac9
Issue #13339 : Fix compile error in posixmodule.c due to missing semicolon.
...
Thanks to Robert Xiao.
2011-11-04 07:09:14 +02:00
Victor Stinner
6777e6f9b1
(Merge 3.2) Issue #12342 : Improve _tkinter error message on unencodable character
2011-11-04 00:43:35 +01:00
Victor Stinner
7ab4192e82
Issue #12342 : Improve _tkinter error message on unencodable character
2011-11-04 00:36:46 +01:00
Victor Stinner
fcd9653667
Fix a compiler warning in unicode_encode_ucs1()
2011-11-04 00:28:50 +01:00
Victor Stinner
fc026c98d8
Fix PyUnicode_EncodeCharmap()
2011-11-04 00:24:51 +01:00
Victor Stinner
7931d9a951
Replace PyUnicodeObject type by PyObject
...
* _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
* Remove now useless casts to PyObject*
2011-11-04 00:22:48 +01:00
Victor Stinner
76a31a6bff
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
2011-11-04 00:05:13 +01:00
Florent Xicluna
a9e73640bf
Oversight in previous commit for test_pep277.
2011-11-03 23:44:15 +01:00
Florent Xicluna
65eb453d28
Use PEP-3151 exceptions for test_pep277.
2011-11-03 23:11:14 +01:00
Victor Stinner
7581cef699
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.
2011-11-03 22:32:33 +01:00
Victor Stinner
65f51bb150
(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.
2011-11-03 20:36:55 +01:00
Victor Stinner
b3bc7e764d
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.
2011-11-03 20:35:40 +01:00
Éric Araujo
6fc41dd1e3
Merge 3.2
2011-11-03 16:45:33 +01:00
Éric Araujo
146f870916
Branch merge
2011-11-03 16:44:13 +01:00
Éric Araujo
9c2f42f253
Branch merge
2011-11-03 16:27:57 +01:00
Éric Araujo
7855a1abec
Actually check the contents of the file created by packaging’s bdist_dumb
2011-11-03 06:00:02 +01:00
Éric Araujo
e64052176d
Merge follow-up for #11254 and other changes from 3.2
2011-11-03 05:17:11 +01:00
Éric Araujo
880801501b
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.
2011-11-03 05:08:28 +01:00
Éric Araujo
a083823a85
Avoid relying on the default reST role in logging library doc
2011-11-03 04:35:20 +01:00