Éric Araujo
68fc9aa318
Apply fix from r85784 on py3k too.
...
Fixes bug #10126 for Python 3.2 by using $RUNSHARED to find the
directory to the shared library. test_distutils now passes when
Python was built with --enable-shared (Barry didn’t have the error
but I did).
2010-10-21 23:02:07 +00:00
Alexander Belopolsky
c08f544844
Fixed a typo
2010-10-21 22:29:36 +00:00
Alexander Belopolsky
41f56f0192
Issue #7061 : Fixed section title
2010-10-21 18:15:39 +00:00
Georg Brandl
2efeb40d5f
Add .hgeol file for the Mercurial EOL extension.
2010-10-21 15:44:51 +00:00
Brian Curtin
6ce1daedc3
Fix r85774 editor fail. Had a dangling try and incorrect indent.
2010-10-21 14:45:01 +00:00
Brian Curtin
000f974b44
Fix #10162 : Add try/except around _winreg.OpenKey for keys that are
...
unreadable by all users, e.g., Flash, Silverlight, and Java keys were
causing errors.
We don't currently have a way to grant/deny permissions for a key
via winreg so there are no tests for this.
2010-10-21 14:11:48 +00:00
Georg Brandl
28928aef2e
#4829 : better error message for invalid file mode
2010-10-21 13:45:52 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Georg Brandl
6d61cb4d2f
#1203650 : allow larger list of files in windows makefile for freeze.
2010-10-21 13:34:51 +00:00
Georg Brandl
9c14f2f343
#3077 : fix h2py substitution of character literals.
2010-10-21 13:29:10 +00:00
Georg Brandl
a847ccbeae
Fix missing import.
2010-10-21 13:01:23 +00:00
Georg Brandl
29848f0570
#9919 : fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.
2010-10-21 12:59:14 +00:00
Georg Brandl
a9afb68789
#9095 , #8912 , #8999 : add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
2010-10-21 12:49:28 +00:00
Georg Brandl
50de5f56a9
#10159 : sort completion matches before comparing to dir() result.
2010-10-21 07:40:03 +00:00
Victor Stinner
f933e1ab6f
Issue #4388 : On Mac OS X, decode command line arguments from UTF-8, instead of
...
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
2010-10-20 22:58:25 +00:00
Victor Stinner
073f759d65
Move non-ascii test from test_run_code() to a new function: test_non_ascii()
2010-10-20 21:56:55 +00:00
Victor Stinner
f6211eda71
Move test_undecodable_code() from test_sys to test_cmd_line
2010-10-20 21:52:33 +00:00
Victor Stinner
6722b5f7f1
test_zipimport_support: use ascii() on bytes output to avoid BytesWarning
...
The test failed with python -bb.
2010-10-20 21:48:35 +00:00
Benjamin Peterson
b8ffb60ec6
fix uninitialized struct member #10152
2010-10-20 21:25:23 +00:00
Vinay Sajip
05ed69590b
logging: Improved StreamHandler documentation.
2010-10-20 20:34:09 +00:00
Vinay Sajip
2a20dfc2aa
logging: Made StreamHandler terminator configurable.
2010-10-20 20:05:38 +00:00
Ronald Oussoren
f3500e1198
Fix for issue #7473 .
...
Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.
2010-10-20 13:10:12 +00:00
Ronald Oussoren
d0103292f0
Don't lie about the supported architectures in the OSX installer
...
Without this patch the i386/x86_64 installer for OSX 10.6
lies in the ReadMe file and the "Important Information" screen
of the installer (that is, the installer claims it supports
the i386 and ppc architectures insetead of the ones it really
supports)
2010-10-20 12:56:56 +00:00
Vinay Sajip
22246fdd9d
logging: clarified Filter documentation.
2010-10-20 11:40:02 +00:00
Georg Brandl
9450cc056a
Fix r85728: use "" to mean the system default locale, which should work on more systems.
2010-10-20 06:50:19 +00:00
R. David Murray
f19076e592
Correct signature of BytesGenerator in docs.
2010-10-19 23:05:35 +00:00
Vinay Sajip
fc082cafa6
logging: Documented usage of callables as filters.
2010-10-19 21:13:49 +00:00
Alexander Belopolsky
435d306aa9
Issue #7061 : Fixed some of the issues in turtle module documentation
...
reported by Terry J. Reedy.
2010-10-19 21:07:52 +00:00
Georg Brandl
f285bcca28
Be consistent in the spelling of thread-safe(ty).
2010-10-19 21:07:16 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136
logging: Added tests for _logRecordClass changes.
2010-10-19 20:44:14 +00:00
Georg Brandl
7004bd1a3d
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
2010-10-19 18:54:25 +00:00
Alexander Belopolsky
f87cc04481
Fixed the docstring for calendar.isleap() function.
...
Thanks Boštjan Mejak for the patch.
2010-10-19 17:43:50 +00:00
Vinay Sajip
062d56b1f0
logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to increase flexibility of LogRecord creation.
2010-10-19 15:26:24 +00:00
Senthil Kumaran
7cd94b8aa2
Fix Issue10140 - Tools/scripts/pathfix.py: add option to preserve timestamps
2010-10-19 04:39:35 +00:00
Victor Stinner
e474309bb7
initfsencoding(): get_codeset() failure is now a fatal error
...
Don't fallback to utf-8 anymore to avoid mojibake. I never got any error from
his function.
2010-10-19 00:05:51 +00:00
Victor Stinner
07298a1f04
zipimport: remove arbitrary length limit from message formats
...
PyErr_Format() and PyUnicode_FromFormat() are able to allocate the right buffer
size and to catch memory allocation failures.
2010-10-18 22:45:54 +00:00
Victor Stinner
9e40fad193
zipimport: document archive encoding; fix indentation
2010-10-18 22:34:46 +00:00
Victor Stinner
965a8a1c5b
Revert r85699 and r85701 (zipimport): fullname is a module name, not a path
...
UTF-8 is just fine for module names.
2010-10-18 21:44:33 +00:00
Victor Stinner
8c8ed0a799
zipimport: fix "can't find module ..." error message
...
I cannot use %U: fullname is a bytes object, not an unicode object. %A format
cannot be used, it adds 'b' (bytes) prefix. So create cant_find_module()
function to decode the filename and raise the error message.
2010-10-18 21:21:02 +00:00
Victor Stinner
9a90900da5
PyUnicode_FromFormatV(): Fix %A format
...
It was not completly implemented. Add a test.
2010-10-18 20:59:24 +00:00
Victor Stinner
0410656b30
zipimport: find_module(), is_package() and get_source() supports surrogates
...
Use PyUnicode_FSConverter to support surrogates in the full name.
2010-10-18 20:44:08 +00:00
Victor Stinner
269aeb7c0d
zipimport: pass path size to make_filename()
...
Don't hardcode path size in make_filename().
2010-10-18 20:40:59 +00:00
Barry Warsaw
f040d7de94
One more change for issue 9807, by Matthias Klose.
...
This adds $ABIFLAGS to the static library, since it should match the shared
library name. Also, include the abiflags in python-config --libs.
2010-10-18 17:09:07 +00:00
Alexander Belopolsky
eebccfb10c
Reverted inadvertent change that slipped into r85695
2010-10-18 15:11:33 +00:00
Alexander Belopolsky
4a98e3b6d0
Issue #10117 : Tools/scripts/reindent.py now accepts source files that
...
use encoding other than ASCII or UTF-8. Source encoding is preserved
when reindented code is written to a file.
2010-10-18 14:43:38 +00:00
Georg Brandl
016cec75bd
Fix hash function type.
2010-10-18 12:24:53 +00:00
Victor Stinner
2a94f4c0ef
get_code_from_data() uses the filesystem encoding to encode the module path,
...
instead of utf-8.
2010-10-18 12:15:34 +00:00
Victor Stinner
d36c8217e1
zipimport: read_directory() uses cp437 or utf-8 (in strict mode), depending on
...
the unicode flag, to decode the filename, instead of the filesystem encoding.
Use the same choice than the zipfile module.
2010-10-18 12:13:46 +00:00
Hirokazu Yamamoto
b08820ad40
Issue #5117 : Case normalization was needed on ntpath.relpath(). And
...
fixed root directory issue on posixpath.relpath(). (Ported working fixes
from ntpath)
2010-10-18 12:13:18 +00:00