Martin v. Löwis
ff398c6f95
Format bools properly in %d.
2007-08-14 21:57:32 +00:00
Collin Winter
3eed765223
Bug #1772489 : make dir() work on traceback objects again.
2007-08-14 17:53:54 +00:00
Jeremy Hylton
3a38c91342
Remove Python 1.5 compatibility layer from httplib.
...
The two clients in the std library have been updated to use the newer
interface. A couple of minor changes to the httplib tests were
needed.
Also, reformat some long lines in the httplib tests.
2007-08-14 17:08:07 +00:00
Jeremy Hylton
5d8a88a442
Change xmlrpclib to use the newer httplib interface.
...
Note that it's hard to test xmlrpclib, because the server it attempts
to connect to doesn't seem to support the expected interfaces. Many
of the links via xmlrpc.com are dead, so I couldn't find another
server to use for tests.
2007-08-14 16:47:39 +00:00
Guido van Rossum
956e359579
The dbm module should use bytes for keys. This makes test_shelve pass.
2007-08-14 15:42:45 +00:00
Martin v. Löwis
5bcf109c73
Fix test_gdbm.
2007-08-14 09:24:24 +00:00
Martin v. Löwis
967f1e3b85
Remove string.{letters,lowercase,uppercase}.
2007-08-14 09:23:10 +00:00
Guido van Rossum
5424df2f7e
Patch suggested Paul Colomiets fixes test_threaded_import.py.
2007-08-13 19:06:38 +00:00
Guido van Rossum
c934128162
Improved patches for sndhdr and imghdr by Victor Stinner, who writes:
...
- fix "h[sbseek] == b'\1'" and "ratecode = ord(h[sbseek+4])" in test_voc()
- avoid division by zero
- use startswith method: replace h[:2] == b'BM' by h.startswith(b'BM')
- use aifc.open() instead of old aifc.openfp()
- use ord(b'P') instead of ord('P')
2007-08-13 17:50:00 +00:00
Guido van Rossum
4c269c5928
Fix two obvious 2.xisms.
2007-08-13 17:39:20 +00:00
Martin v. Löwis
4d9ed9fc33
Enable basic load/store again.
2007-08-13 13:30:04 +00:00
Hye-Shik Chang
caf871ad32
Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.
2007-08-13 13:21:33 +00:00
Hye-Shik Chang
49d90bc9ef
Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
...
in utf-8.
2007-08-13 13:11:39 +00:00
Lars Gustäbel
ead70565fc
Retouch my last change after a comment on style from Guido.
2007-08-13 09:05:16 +00:00
Martin v. Löwis
0f98d8f8ea
Allow str8 in .write().
2007-08-13 06:26:48 +00:00
Martin v. Löwis
98ff898c46
Expect that source strings are Unicode.
2007-08-13 06:03:15 +00:00
Martin v. Löwis
e83395ee79
Make assertion error be more verbose.
2007-08-13 06:02:38 +00:00
Martin v. Löwis
163b717cd3
Fix typo.
2007-08-13 06:02:09 +00:00
Barry Warsaw
72937f3216
Compare what's read from files against proper byte literals. Neither of these
...
modules have unittests AFAICT, and I'm not improving things here, but these
changes make a bunch of email package tests succeed, and command line testing
against real files seems to make things better.
Added an __main__ section to imghdr.py so that it can be run from the command
line similarly to sndhdr.py. Someone else can figure out a better -m way of
doing this.
In sndhdr.py do a couple of very minor cleanups, and use a with statement to
not wait for gc to close the file.
2007-08-12 14:37:20 +00:00
Martin v. Löwis
646049ec30
Don't try to convert str to Unicode anymore.
2007-08-12 07:06:14 +00:00
Neal Norwitz
9b2a26989d
Get pystone working with lazy map.
2007-08-12 07:02:50 +00:00
Kurt B. Kaiser
cbbe98f04f
1. Catch TypeError exception when writing to OutputWindow
...
2. PyShell: shell isn't working due to encoding issues. Temporarily direct
exceptions to the terminal. Also, trap exceptions occurring during write()
instead of passing.
Checking (2) in temporarily to aid finding the encoding problem in
IOBinding.py
2007-08-12 01:52:35 +00:00
Neal Norwitz
801c89be5d
Add -s/--start option that makes it easier to run the tests in batches
...
when one test fails and you want to start running from that point onwards.
2007-08-12 01:31:40 +00:00
Neal Norwitz
016880229a
Kill execfile(), use exec() instead
2007-08-12 00:43:29 +00:00
Neal Norwitz
bb217d9ed8
Make sure to flush output when writing dots during -R runs
2007-08-12 00:00:44 +00:00
Neal Norwitz
f7f28fc46b
Fix problem when exec'ing a string with a coding
2007-08-11 21:31:25 +00:00
Neal Norwitz
03fc7799b0
Remove unnecessary import
2007-08-11 19:27:13 +00:00
Neal Norwitz
1e50a9f7cc
Fix test_wsgiref that used StringIO and a BufferedReader rather than
...
real files. This code assumed that fileno() would succeed which wasn't
the case.
2007-08-11 18:37:05 +00:00
Guido van Rossum
9264ecd799
Quick fix for a new problem here -- using string.lowercase somehow caused
...
problems.
2007-08-11 16:40:13 +00:00
Martin v. Löwis
d78d3b4541
Fall back to ascii if the locale module cannot be loaded.
2007-08-11 15:36:45 +00:00
Martin v. Löwis
d1cd4d4176
Set sys.stdout.encoding properly.
...
Always set LC_CTYPE on interpreter startup.
Add device_encoding function.
2007-08-11 14:02:14 +00:00
Martin v. Löwis
79c320898d
Change shelve to require a bytes-oriented dict as
...
the underlying storage, and yet provide string keys.
2007-08-11 06:57:14 +00:00
Neal Norwitz
8dfc4a9bac
Remove support for __members__ and __methods__. There still might be
...
some cleanup to do on this. Particularly in Python/traceback.c with
getting rid of the getattr if possible and Demo/*metaclasses/Enum.py.
2007-08-11 06:39:53 +00:00
Martin v. Löwis
32ca442b13
Fix test_bsddb3.
2007-08-11 06:13:20 +00:00
Kurt B. Kaiser
7378df7822
Fix what appears to be a very old bug. Tkinter in struni is more intolerant
...
of non-existant text widget 'marks', it seems.
2007-08-11 04:20:51 +00:00
Guido van Rossum
efdca3e071
Use an event variable to wait for the server to be ready, rather than sleep(0.1).
2007-08-10 21:28:41 +00:00
Kurt B. Kaiser
6ae6ba09ea
Remove the None tag from tagdefs dict for now, appears inoperative and
...
causes a _tkinter error in py3k.
2007-08-10 19:45:35 +00:00
Jeremy Hylton
e6b59c5550
Make sure the mock object passed to finish_request() is buffered.
2007-08-10 19:13:33 +00:00
Jeremy Hylton
7ffe2998cd
Allow rfc822 to process headers from an incoming HTTP request.
2007-08-10 18:49:32 +00:00
Jeremy Hylton
4b878bd3d5
Style
2007-08-10 18:49:01 +00:00
Gerhard Häring
6d21456137
Make the sqlite tests pass.
2007-08-10 18:15:11 +00:00
Guido van Rossum
bd4a63e091
A small tweak to avoid calling traceback.format_exception_only() with
...
a bogus (tuple) value. This should fix the "make install" issue Neal
reported.
2007-08-10 17:36:34 +00:00
Lars Gustäbel
5590d8cc8a
RFC 1952 requires the FNAME field to be Latin-1. Do not include
...
filenames that cannot be represented that way.
2007-08-10 12:02:32 +00:00
Martin v. Löwis
cccc58d993
Fix dbshelve and much of dbtables.
2007-08-10 08:36:56 +00:00
Martin v. Löwis
9b01862d32
Wrap set_location.
2007-08-10 07:47:16 +00:00
Kurt B. Kaiser
e1b4a1613b
Fix circular import issue
2007-08-10 02:45:06 +00:00
Kurt B. Kaiser
f2335a9da0
Fix filter() issues
2007-08-10 02:41:21 +00:00
Guido van Rossum
283f3ffc24
Remove spurious (and unneeded) import of StringIO.
2007-08-10 01:01:28 +00:00
Guido van Rossum
f39317a972
Hack to avoid a nasty recursion issue when Python is invoked
...
in verbose mode: pre-import the Latin-1 and UTF-8 codecs
2007-08-09 22:51:04 +00:00
Kurt B. Kaiser
66aaf74e52
Fix remaining map() issues.
...
M idlelib/PyShell.py
M idlelib/EditorWindow.py
M idlelib/rpc.py
M idlelib/OutputWindow.py
M idlelib/RemoteObjectBrowser.py
2007-08-09 18:00:23 +00:00