Victor Stinner
e7c8083bf1
Ooops, fileutils.c contains twice the same code
...
I suppose that I reapplied my local patch creating Python/fileutils.c whereas
the file already existed.
2010-10-07 21:55:44 +00:00
Victor Stinner
4e31443c4d
Create fileutils.c/.h
...
* _Py_fopen() and _Py_stat() come from Python/import.c
* (_Py)_wrealpath() comes from Python/sysmodule.c
* _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c
* (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c
2010-10-07 21:45:39 +00:00
Victor Stinner
7ae7c87b05
_wrealpath() and _Py_wreadlink() support surrogates (PEP 383)
...
Use _Py_wchar2char() to support surrogate characters in the input path.
2010-10-07 11:06:49 +00:00
Brian Curtin
afa88b5dac
Fix #8584 . Fix the skipping of a number of tests due to incorrect importing.
...
This undoes a previous attempt to fix some of the skips. Value and copy
come from sharedctypes rather than plain ctypes, and the test skipping is
then done at the class level rather than test-by-test.
There are zero skipped tests after the fix.
2010-10-07 01:12:19 +00:00
Victor Stinner
beb4135b8c
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
...
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
2010-10-07 01:02:42 +00:00
Victor Stinner
ef12810f0c
time: fix gcc warning
...
* Create format_arg variable to use the right types
* Strip trailing spaces
2010-10-07 01:00:52 +00:00
Victor Stinner
4726e40e00
Rewrite RunMainFromImporter()
...
* fix argv0 reference counter if PyList_SetItem() fails
* don't use complex if conditions, but a simple indentation and "goto error"
* simplify error handling (remove Py_XDECREF(importer) from the error label)
* don't set sys_path to NULL (it's useless, sys_path is a borrowed reference
and sys_path is not a static variable)
* try to write only one instruction per line for better readability
2010-10-06 23:24:57 +00:00
Victor Stinner
c08ec9fdba
Create a subfunction for PySys_SetArgvEx()
...
Create sys_update_path() static function. Do nothing if argc==0.
2010-10-06 22:44:06 +00:00
Antoine Pitrou
7980eaa98d
Issue #9759 : GzipFile now raises ValueError when an operation is attempted
...
after the file is closed. Patch by Jeffrey Finkelstein.
2010-10-06 21:21:18 +00:00
Antoine Pitrou
cd889af917
More new things in what's new
2010-10-06 21:13:56 +00:00
Antoine Pitrou
fa9c38d8e9
FakeSocket is (supposed to be) gone in 3.x
2010-10-06 18:38:22 +00:00
Brian Quinlan
1e2ae4f054
Fixes 9903: test_concurrent_futures writes on stderr
2010-10-06 13:05:45 +00:00
Georg Brandl
5ad8ed5f26
Update to Sphin 1.0.4.
2010-10-06 12:29:49 +00:00
Georg Brandl
19b3e00627
Fix the suspicious builder not to write CRLF, update suspicious file and add instructions to Makefile.
2010-10-06 10:35:24 +00:00
Georg Brandl
682d7e0e07
Fix errors found by "make suspicious".
2010-10-06 10:26:05 +00:00
Georg Brandl
fa4f7f97b8
Fix spelling and markup.
2010-10-06 10:14:08 +00:00
Georg Brandl
60203b41b0
Migrate to Sphinx 1.0 C language constructs.
2010-10-06 10:11:56 +00:00
Georg Brandl
64a41edb03
Copyedit of os.symlink() docs.
2010-10-06 08:52:48 +00:00
Georg Brandl
a102ae3426
#10034 : import readline in longer example.
2010-10-06 05:08:32 +00:00
Amaury Forgeot d'Arc
b441554835
#2982 More test coverage for the pyexpat parser.
2010-10-05 23:14:47 +00:00
Amaury Forgeot d'Arc
90774dd47b
#9060 Let platforms without dup2() compile the replacement fonction without error.
2010-10-05 22:15:37 +00:00
Senthil Kumaran
c08d9070db
fix a typo.
2010-10-05 18:46:56 +00:00
Senthil Kumaran
242690f870
Remove the references of FTPS from the urllib Documentation. There is no support for it yet.
2010-10-05 18:35:41 +00:00
Antoine Pitrou
2f92e783b8
Fix test_tk under OS X with Tk 8.4. Patch by Ned Deily.
...
This should fix some buildbot failures.
2010-10-05 11:24:49 +00:00
Georg Brandl
eeed95538e
Indent version tags properly.
2010-10-05 07:16:01 +00:00
Éric Araujo
ef777bd3d3
Fix news entry formatting nits
2010-10-05 00:04:20 +00:00
Éric Araujo
6108bf5ed0
Fix interaction of custom translation classes and caching ( #9042 )
2010-10-04 23:52:37 +00:00
Éric Araujo
701761693c
Recode developers.txt to UTF-8, as discussed on python-dev.
...
Fix Łukasz’ name and also remove trailing whitespace. See thread at
http://mail.python.org/pipermail/python-dev/2010-September/103584.html
2010-10-04 22:32:36 +00:00
Antoine Pitrou
7b998e9f52
GzipFile.peek improvements, suggested by Nir Aides.
2010-10-04 21:55:14 +00:00
Giampaolo Rodolà
977c707b42
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
2010-10-04 21:08:36 +00:00
Martin v. Löwis
4c94c53630
Add Tal Einat.
2010-10-04 15:48:14 +00:00
Lars Gustäbel
331b8002f0
Issue #9065 : no longer use "root" as the default for the
...
uname and gname field.
If tarfile creates a new archive and adds a file with a
uid/gid that doesn't have a corresponding name on the
system (e.g. because the user/group account was deleted) it
uses the empty string in the uname/gname field now instead
of "root". Using "root" as the default was a bad idea
because on extraction the uname/gname fields are supposed
to override the uid/gid fields. So, all archive members
with nameless uids/gids belonged to the root user after
extraction.
2010-10-04 15:18:47 +00:00
Senthil Kumaran
f580adee27
Remove the debugging print line from the test.
2010-10-04 05:42:58 +00:00
Gerhard Häring
e0941c5bd2
Fixes #10020
2010-10-03 21:47:06 +00:00
Senthil Kumaran
58d5dbf80b
Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k).
2010-10-03 18:22:42 +00:00
Senthil Kumaran
4271372a71
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
2010-10-03 17:55:45 +00:00
Tarek Ziadé
388f956c35
typo in Arfrever name
2010-10-03 14:45:06 +00:00
Tarek Ziadé
4bcceef5a1
Fixed #8980 : distutils.command.check was failing w/ docutils installed
2010-10-03 14:18:09 +00:00
Benjamin Peterson
84060b81e3
typo
2010-10-03 02:13:39 +00:00
Benjamin Peterson
970d1887c5
add a test and a note about metaclasses now being abcs
2010-10-02 17:55:47 +00:00
R. David Murray
5397e862e2
#1050268 : make parseaddr 'quote' the contents of quoted strings in addresses.
...
Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.
2010-10-02 15:58:26 +00:00
R. David Murray
8f7bcb3f85
Make the printing of sqlite version in verbose mode work with regrtest -w.
2010-10-02 13:29:13 +00:00
Victor Stinner
aef57e3969
Update changelog for r85174
2010-10-02 11:50:49 +00:00
Victor Stinner
46c7b3b283
Issue #8670 : Rename testcapi unicode test methods
...
* test_aswidechar() => unicode_aswidechar()
* test_aswidecharstring() => unicode_aswidecharstring()
2010-10-02 11:49:31 +00:00
Victor Stinner
ea3f305a25
Oops, revert unwanted _testcapi changes of r85174
2010-10-02 11:46:20 +00:00
Victor Stinner
749261e241
Issue #8670 : ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
2010-10-02 11:25:35 +00:00
Victor Stinner
5593d8aeb4
Issue #8670 : PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
...
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).
2010-10-02 11:11:27 +00:00
Victor Stinner
1c24bd0252
Issue #8870 : PyUnicode_AsWideCharString() doesn't count the trailing nul character
...
And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().
2010-10-02 11:03:13 +00:00
Senthil Kumaran
5a2da3b3ad
Use proper variable name 'data' instead of 'str' in the send method.
2010-10-02 10:33:13 +00:00
Senthil Kumaran
7cafd2644a
Fix - issue10010 .. index:: position in the docs.
2010-10-02 03:16:04 +00:00