Andrew M. Kuchling
872dba4253
[Patch #1574068 by Scott Dial] urllib and urllib2 were using
...
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.
2006-10-27 17:11:23 +00:00
Andrew M. Kuchling
6d72b0e1f8
Clarify docstring
2006-10-27 17:06:16 +00:00
Andrew M. Kuchling
0f87183cf5
[Bug #1575506 ] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
2006-10-27 16:55:34 +00:00
Andrew M. Kuchling
41eb7164df
[Bug #1576241 ] Let functools.wraps work with built-in functions
2006-10-27 16:39:10 +00:00
Martin v. Löwis
ee82c0e6b7
Patch #1567274 : Support SMTP over TLS.
2006-10-27 07:13:28 +00:00
Martin v. Löwis
b5bc537c5e
Patch #1549049 : Rewrite type conversion in structmember.
...
Fixes #1545696 and #1566140 . Will backport to 2.5.
2006-10-27 06:16:31 +00:00
Andrew M. Kuchling
efb57072fe
Typo fix
2006-10-26 19:16:46 +00:00
Georg Brandl
a32e0a099b
Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
2006-10-24 16:54:16 +00:00
Martin v. Löwis
e97c759660
Remove passwd.adjunct.byname from list of maps
...
for test_nis. Will backport to 2.5.
2006-10-22 13:45:13 +00:00
Walter Dörwald
d3973b578f
Port test___future__ to unittest.
2006-10-22 08:59:41 +00:00
Tim Peters
ef3f32f965
Whitespace normalization.
2006-10-18 05:09:12 +00:00
Thomas Heller
d2ea4a2584
ctypes callback functions only support 'fundamental' result types.
...
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called. This is a partial fix for #1574584 .
Will backport to release25-maint.
2006-10-17 19:30:48 +00:00
Brett Cannon
d80e0c8677
Fix turtle so that you can launch the demo2 function on its own instead of only
...
when the module is launched as a script.
2006-10-16 03:09:52 +00:00
Martin v. Löwis
a97e06d9db
Round to int, because some systems support sub-second time stamps in stat, but not in utime.
...
Also be consistent with modifying only mtime, not atime.
2006-10-15 11:02:07 +00:00
Martin v. Löwis
cfcd3a9569
Loosen the test for equal time stamps.
2006-10-15 09:35:51 +00:00
Martin v. Löwis
18aaa568fd
Patch #1576166 : Support os.utime for directories on Windows NT+.
2006-10-15 08:43:33 +00:00
Neal Norwitz
cbeb687c68
Update the peephole optimizer to remove more dead code (jumps after returns)
...
and inline jumps to returns.
2006-10-14 21:33:38 +00:00
Georg Brandl
65ad043ea3
Bug #1560179 : speed up posixpath.(dir|base)name
2006-10-12 13:08:16 +00:00
Georg Brandl
35207712dc
Fix tarfile depending on buggy int('1\0', base) behavior.
2006-10-12 12:03:07 +00:00
Georg Brandl
2c1375c8db
Bug #1545497 : when given an explicit base, int() did ignore NULs
...
embedded in the string to convert.
2006-10-12 11:27:59 +00:00
Georg Brandl
5597e261b2
Bug #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write()
method does, instead of converting it to a raw buffer.
2006-10-12 09:47:12 +00:00
Georg Brandl
b2e81e307d
Bug #1550524 : better heuristics to find correct class definition
...
in inspect.findsource().
2006-10-12 09:20:33 +00:00
Georg Brandl
d076153ee8
Bug #813342 : Start the IDLE subprocess with -Qnew if the parent
...
is started with that option.
2006-10-12 07:57:21 +00:00
Martin v. Löwis
f43893a878
Bug #1565150 : Fix subsecond processing for os.utime on Windows.
2006-10-09 20:44:25 +00:00
Ronald Oussoren
d6272a3cf6
MacOSX: The universal build requires that users have the MacOSX10.4u SDK
...
installed to build extensions. This patch makes distutils emit a warning when
the compiler should use an SDK but that SDK is not installed, hopefully reducing
some confusion.
2006-10-08 17:51:46 +00:00
Ronald Oussoren
d610369e8b
MacOSX: distutils changes the values of BASECFLAGS and LDFLAGS when using a
...
universal build of python on OSX 10.3 to ensure that those flags can be used
to compile code (the universal build uses compiler flags that aren't supported
on 10.3). This patches gives the same treatment to CFLAGS, PY_CFLAGS and
BLDSHARED.
2006-10-08 17:49:52 +00:00
Hye-Shik Chang
b788346573
Bug #1572832 : fix a bug in ISO-2022 codecs which may cause segfault
...
when encoding non-BMP unicode characters. (Submitted by Ray Chason)
2006-10-08 13:48:34 +00:00
Armin Rigo
615842fba6
A very minor bug fix: this code looks like it is designed to accept
...
any hue value and do the modulo itself, except it doesn't quite do
it in all cases. At least, the "cannot get here" comment was wrong.
2006-10-06 16:33:22 +00:00
Andrew M. Kuchling
9d57e53e4e
[Bug #1545341 ] Allow 'classifier' parameter to be a tuple as well as a list. Will backport.
2006-10-06 13:18:26 +00:00
Martin v. Löwis
8b274265f0
Add MSVC8 project files to create wininst-8.exe.
2006-10-04 15:25:28 +00:00
Armin Rigo
7ccbca93a2
Forward-port of r52136,52138: a review of overflow-detecting code.
...
* unified the way intobject, longobject and mystrtoul handle
values around -sys.maxint-1.
* in general, trying to entierely avoid overflows in any computation
involving signed ints or longs is extremely involved. Fixed a few
simple cases where a compiler might be too clever (but that's all
guesswork).
* more overflow checks against bad data in marshal.c.
* 2.5 specific: fixed a number of places that were still confusing int
and Py_ssize_t. Some of them could potentially have caused
"real-world" breakage.
* list.pop(x): fixing overflow issues on x was messy. I just reverted
to PyArg_ParseTuple("n"), which does the right thing. (An obscure
test was trying to give a Decimal to list.pop()... doesn't make
sense any more IMHO)
* trying to write a few tests...
2006-10-04 12:17:45 +00:00
Martin v. Löwis
820d6ac9d7
Fix integer negation and absolute value to not rely
...
on undefined behaviour of the C compiler anymore.
Will backport to 2.5 and 2.4.
2006-10-04 05:47:34 +00:00
Jeremy Hylton
82271f13e7
Fix for SF bug 1569998: break permitted inside try.
...
The compiler was checking that there was something on the fblock
stack, but not that there was a loop on the stack. Fixed that and
added a test for the specific syntax error.
Bug fix candidate.
2006-10-04 02:24:52 +00:00
Barry Warsaw
1e3c3b15df
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
...
test for parts > 3 when we use .split(..., 2).
2006-10-04 02:06:36 +00:00
Brett Cannon
373d90b365
Convert test_imp over to unittest.
2006-10-03 23:23:14 +00:00
Vinay Sajip
2c050af28b
Modified LogRecord.__init__ to make the func parameter optional. (See SF #1569622 ).
2006-10-03 18:21:56 +00:00
Kurt B. Kaiser
e0b673573b
Add comment explaining that error msgs may be due to user code when
...
running w/o subprocess.
2006-10-01 21:54:37 +00:00
Kurt B. Kaiser
c426ffcdfc
Some syntax errors were being caught by tokenize during the tabnanny
...
check, resulting in obscure error messages. Do the syntax check
first. Bug 1562716, 1562719
2006-10-01 21:16:45 +00:00
Georg Brandl
54c3db55a2
Convert test_import to unittest.
2006-09-30 12:16:03 +00:00
Georg Brandl
a92979a1db
Bug #1446043 : correctly raise a LookupError if an encoding name given
...
to encodings.search_function() contains a dot.
2006-09-30 11:22:28 +00:00
Georg Brandl
4ddfcd3b60
Bug #1556784 : allow format strings longer than 127 characters in
...
datetime's strftime function.
2006-09-30 11:17:34 +00:00
Georg Brandl
154324a8c3
Bug #1560617 : in pyclbr, return full module name not only for classes,
...
but also for functions.
2006-09-30 11:06:47 +00:00
Georg Brandl
05b3c450a8
Bug #1457823 : cgi.(Sv)FormContentDict's constructor now takes
...
keep_blank_values and strict_parsing keyword arguments.
2006-09-30 10:58:01 +00:00
Georg Brandl
8d1e5bffc1
Bug #1566602 : correct failure of posixpath unittest when $HOME ends
...
with a slash.
2006-09-30 09:13:21 +00:00
Georg Brandl
3267d28f9d
Bug #1566800 : make sure that EnvironmentError can be called with any
...
number of arguments, as was the case in Python 2.4.
2006-09-30 09:03:42 +00:00
Georg Brandl
5d59c09834
Patch #1567691 : super() and new.instancemethod() now don't accept
...
keyword arguments any more (previously they accepted them, but didn't
use them).
2006-09-30 08:43:30 +00:00
Georg Brandl
8c6674511b
Bug #1565661 : in webbrowser, split() the command for the default
...
GNOME browser in case it is a command with args.
2006-09-30 07:31:57 +00:00
Brett Cannon
11b3535280
Make the error message for when the time data and format do not match clearer.
2006-09-26 23:38:24 +00:00
Armin Rigo
c839c2f226
Another crasher.
2006-09-25 15:16:26 +00:00
Georg Brandl
c7986cee76
Fix a bug in traceback.format_exception_only() that led to an error
...
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
2006-09-24 12:50:24 +00:00