Marc-André Lemburg
4e0c72bbf0
Clarfiy the availability of the extended support for win32_ver() in Py2.6.
2008-03-20 18:58:14 +00:00
Marc-André Lemburg
a1867750f6
Add news items for platform module changes.
2008-03-20 18:08:00 +00:00
Marc-André Lemburg
53c7a60379
Add documentation for updated Windows support in win32_ver().
...
Add documentation for linux_distribution() API.
2008-03-20 17:55:31 +00:00
Marc-André Lemburg
dbd61a2bff
If Mark Hammonds win32 tools are not available, try to use the _winreg module
...
and sys.getwindowsversion() to get at the Windows version info.
For the machine and processor uname() values, use the environment variables
for these on Windows XP and later.
2008-03-20 17:31:36 +00:00
Brett Cannon
fa6a8b3aaa
Gave Jerry Seutter svn access for general Python development.
2008-03-20 16:13:48 +00:00
Georg Brandl
402b270799
#2383 : remove obsolete XXX comment in stat.py.
2008-03-20 07:25:55 +00:00
Gregory P. Smith
6af3db8632
Attempt to fix the Solaris Sparc 10 buildbot. It was failing with an invalid
...
argument error on ioctl. This was caused by the added test_fcntl ioctl test
that hard coded 0 as the fd to use. Without a terminal, this fails on solaris.
(it passed from the command line on sol 10, both 32 and 64 bit)
Also, test_ioctl exists so I moved the test into there where it belongs.
2008-03-20 05:41:53 +00:00
Sean Reifscheider
45ea86c124
Issue 2188: Documentation hint about disabling proxy detection.
2008-03-20 03:20:48 +00:00
Trent Nelson
00b53ea1b8
Revert r61650; the intent of this commit was to try and address alarm failures on some of the build slaves. As Neal points out, it's called after test_main(), so it's not going to factor into the test when run via regrtest.py (and removes the original functionality that Jeffrey wanted that would kill the test if it took longer than 3 seconds to run when executing it directly during development).
2008-03-20 00:58:44 +00:00
Sean Reifscheider
68fa8e6c45
Forgot to add NEWS item about smtplib SSL readline hang fix.
2008-03-20 00:50:07 +00:00
Sean Reifscheider
ac2ed1e0ac
Issue #2143 : Fix embedded readline() hang on SSL socket EOF.
2008-03-20 00:46:50 +00:00
Gregory P. Smith
a5cfcad0e3
Prevent ioctl op codes from being sign extended from int to unsigned long
...
when used on platforms that actually define ioctl as taking an unsigned long.
(the BSDs and OS X / Darwin)
Adds a unittest for fcntl.ioctl that tests what happens with both positive and
negative numbers.
This was done because of issue1471 but I'm not able to reproduce -that- problem
in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.
2008-03-19 23:03:25 +00:00
Brett Cannon
48581c5f08
Make sure that the warnings filter is not reset or changed beyond the current
...
running test file.
Closes issue2407. Thanks Jerry Seutter.
2008-03-19 23:01:17 +00:00
Trent Nelson
a0ce6b6b71
Bump the SIGALM delay from 3 seconds to 20 seconds, mainly in an effort to see if it fixes the alarm failures in this test experienced by some of the buildbots.
2008-03-19 22:51:42 +00:00
Raymond Hettinger
c71d2a9afd
Remove unnecessary traceback save/restore pair.
2008-03-19 22:47:48 +00:00
Trent Nelson
27f60a65e8
Comment out tcltk/tcltk64 removal.
2008-03-19 22:41:10 +00:00
Gregory P. Smith
f15cde3732
Improve the error message when the CRCs don't match.
2008-03-19 22:23:51 +00:00
Trent Nelson
e7abf20ce7
Force a clean of the tcltk/tcltk64 directories now that we've completely changed the tcl/tk build environment.
2008-03-19 21:51:16 +00:00
Trent Nelson
611c86b7d1
Fix the x64 Windows build environment used by the buildbots. %VS90COMNTOOLS%\vsvars32.bat is fine for 32-bit builds, but doesn't work for x64 builds, regardless of /MACHINE:AMD64 and /USECL:MS_OPTERON flags passed to cl.exe. Launch the x86_64 cross compilation environment via '%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat x86_amd64'. I don't have access to any systems *without* Visual Studio 2008 Professional installed (i.e. just Express Edition), so I can't test if x64 compilation works w/ VS Express at the moment.
...
Additionally, force a clean in our build.bat files before building, just whilst we're going through these build system updates.
And finally, add in the missing MACHINE=AMD64 option to our Tcl/Tk x64 build.
2008-03-19 21:11:55 +00:00
Raymond Hettinger
0ccfe5f2a0
Remove itertools warnings I had added before the 2-to-3 handled the migration.
2008-03-19 18:01:58 +00:00
Raymond Hettinger
10dca6e282
The filter() function does support a None argument in Py3.0.
2008-03-19 17:58:59 +00:00
Raymond Hettinger
05387861ea
Issue 2354: Fix-up compare warning. Patch contributed by Jeff Balogh.
2008-03-19 17:45:19 +00:00
Brett Cannon
977eb021f3
Use sys.py3kwarning instead of trying to trigger a Py3k-related warning.
2008-03-19 17:37:43 +00:00
Brett Cannon
7919d98d56
test_nis would fail if test.test_support.verbose was true but NIS was not set
...
up on the machine.
Closes issue2411. Thanks Michael Bishop.
2008-03-19 16:50:13 +00:00
Thomas Heller
12b580b2c6
Checkout sqlite-source when it is not there.
2008-03-19 16:10:57 +00:00
Eric Smith
8ff4963594
Trivial typo.
2008-03-19 12:15:10 +00:00
Eric Smith
e504445972
Use test.test_support.captured_stdout instead of a custom contextmanager.
...
Thanks Nick Coghlan.
2008-03-19 12:09:55 +00:00
Trent Nelson
4f4738f015
Lets have another try at getting the Windows buildbots in a consistent state before rebuilding using the new process.
2008-03-19 09:23:08 +00:00
Trent Nelson
4fbaacaa12
Fix the tcl-8.4.18.1 path and make sure we cd into the right directory when building tcl/tk.
2008-03-19 08:06:03 +00:00
Georg Brandl
97e863eaf8
Another one.
2008-03-19 07:57:57 +00:00
Georg Brandl
482d752dcb
Remove footnote from versionchanged as it upsets LaTeX.
2008-03-19 07:56:40 +00:00
Trent Nelson
2b1ec17ceb
Remove extraneous apostrophe and semi-colon from AdditionalIncludeDirectories.
2008-03-19 07:56:39 +00:00
Trent Nelson
05a96641b4
Refine the Visual Studio 2008 build solution in order to improve how we deal with external components, as well as fixing outstanding issues with Windows x64 build support. Introduce two new .vcproj files, _bsddb44.vcproj and sqlite3.vcproj, which replace the previous pre-link event scripts for _bsddb and _sqlite3 respectively. The new project files inherit from our property files as if they were any other Python module. This has numerous benefits. First, the components get built with exactly the same compiler flags and settings as the rest of Python. Second, it makes it much easier to debug problems in the external components when they're part of the build system. Third, they'll benefit from profile guided optimisation in the release builds, just like the rest of Python core.
...
I've also introduced a slightly new pattern for managing externals in subversion. New components get checked in as <name>-<version>.x, where <version> matches the exact vendor version string. After the initial import of the external component, the .x is tagged as .0 (i.e. tcl-8.4.18.x -> tcl-8.4.18.0). Some components may not need any tweaking, whereas there are others that might (tcl/tk fall into this bucket). In that case, the relevant modifications are made to the .x branch, which will be subsequently tagged as .1 (and then n+1 going forward) when they build successfully and all tests pass. Buildbots will be converted to rely on these explicit tags only, which makes it easy for us to switch them over to a new version as and when required. (Simple change to external(-amd64).bat: if we've bumped tcl to 8.4.18.1, change the .bat to rmdir 8.4.18.0 if it exists and check out a new .1 copy.)
2008-03-19 07:45:19 +00:00
Trent Nelson
b27745fb6d
Issue2290: Support x64 Windows builds that live in pcbuild/amd64. Without it, sysutils._python_build() returns the wrong directory, which causes the test_get_config_h_filename method in Lib/distutils/tests/test_sysconfig.py to fail.
2008-03-19 06:28:24 +00:00
Martin v. Löwis
16b2e6bd7f
Import relimport using a relative import.
2008-03-19 06:00:28 +00:00
Martin v. Löwis
ab41b370a3
Merged revisions 61598-61599,61601 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r61598 | david.wolever | 2008-03-18 23:58:33 -0500 (Di, 18 Mär 2008) | 1 line
Added fixer for zip, and refactored a bit of code in the process. Closing #2171 .
........
r61599 | david.wolever | 2008-03-19 00:04:26 -0500 (Mi, 19 Mär 2008) | 3 lines
Removed a bunch of duplicate code -- it's in util now.
........
r61601 | martin.v.loewis | 2008-03-19 00:21:12 -0500 (Mi, 19 Mär 2008) | 2 lines
Fix whitespace.
........
2008-03-19 05:22:42 +00:00
Martin v. Löwis
aad2b61f44
Initialized merge tracking via "svnmerge" with revisions "1-61595" from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
2008-03-19 04:58:04 +00:00
Martin v. Löwis
5e37baea80
Import lib2to3.
2008-03-19 04:43:46 +00:00
Martin v. Löwis
a4d77898db
Issue #2400 : Allow relative imports to "import *".
2008-03-19 04:39:13 +00:00
Raymond Hettinger
de48d8406f
Fix compiler warning.
2008-03-19 03:56:59 +00:00
Gregory P. Smith
bf02e3bb21
Fix the struct module DeprecationWarnings that zipfile was triggering by
...
removing all use of signed struct values.
test_zipfile and test_zipfile64 pass. no more warnings.
2008-03-19 03:14:41 +00:00
Eric Smith
14cae96fa6
Another test for __future__ print_function.
2008-03-19 03:13:34 +00:00
David Wolever
2724ab99c8
Added zip, map, filter to future_bultins ( #2171 )
2008-03-19 02:35:45 +00:00
David Wolever
fbe7c55905
Added my name to ACKS
2008-03-19 02:26:57 +00:00
Eric Smith
5d5c63f462
Fixed compiler module so __future__ print_function is compilable.
2008-03-19 02:11:30 +00:00
Gregory P. Smith
b89a096d6d
Use zlib's crc32 routine instead of binascii when available. zlib's is faster
...
when compiled properly optimized and about the same speed otherwise.
2008-03-19 01:46:10 +00:00
Gregory P. Smith
bde40078b0
Mention that crc32 and adler32 are available in a different module (zlib).
...
Some people look for them in hashlib.
2008-03-19 01:38:35 +00:00
Andrew M. Kuchling
0279f43950
Add Jeff Rush
2008-03-19 01:05:35 +00:00
Eric Smith
7c47894a2a
Backport of the print function, using a __future__ import.
...
This work is substantially Anthony Baxter's, from issue
1633807. I just freshened it, made a few minor tweaks,
and added the test cases. I also created issue 2412,
which is to check for 2to3's behavior with the print
function. I also added myself to ACKS.
2008-03-18 23:45:49 +00:00
Raymond Hettinger
6c0ff8aacd
Issue: 2354: Add 3K warning for the cmp argument to list.sort() and sorted().
2008-03-18 23:33:08 +00:00