Commit graph

11432 commits

Author SHA1 Message Date
Collin Winter
6d199ef14b Remove unneeded import. 2007-08-28 06:07:49 +00:00
Collin Winter
8ef94e8e88 Remove unneeded imports from bsddb's test_dbshelve. 2007-08-28 06:07:12 +00:00
Collin Winter
115cde3531 Style/idiom cleanup of binhex module. 2007-08-28 06:06:33 +00:00
Guido van Rossum
1b261dff3e Make this work on Mac as well (where Type and Creator are bytes instead of str). 2007-08-28 03:35:35 +00:00
Guido van Rossum
92bab812f7 My wish for TempFile is fulfilled. 2007-08-28 03:32:38 +00:00
Guido van Rossum
f0c7416157 Patch # 1033 by Adam Hupp:
1) tempfile.TemporaryFile, NamedTemporaryFile, and SpooledTemporaryFile
    now pass newline and encoding to the underlying io.open call.
 2) test_tempfile is updated
 3) test_csv is updated to use the new arguments.
2007-08-28 03:29:45 +00:00
Guido van Rossum
a1a68521db Make test_cgi pass. I changed the internal file created by make_file()
to be a text file.  (XXX It should use UTF-8 as the encoding.)
I also removed the unised 'binary' argument from the make_file() signature.

XXX I am under no illusion that this is now working; I're pretty sure
it would be more principled if it always read binary data.  But that's
for someone who actually cares about this module.
2007-08-28 03:11:34 +00:00
Guido van Rossum
7b4beea02e Make dumbdbm use bytes for keys consistently. 2007-08-28 00:09:54 +00:00
Guido van Rossum
bb839ef8ac More str/bytes goodness. 2007-08-27 23:58:21 +00:00
Guido van Rossum
ec42ffd0a3 More str/bytes strictness.
(XXX Though perhaps temp files should be created in text mode by default?!)
2007-08-27 23:40:36 +00:00
Guido van Rossum
199fc75dc1 str/bytes strictness. 2007-08-27 23:38:12 +00:00
Guido van Rossum
b644fb43d6 str/bytes strictness. 2007-08-27 23:36:53 +00:00
Guido van Rossum
7dcb844892 More str/bytes strictness. 2007-08-27 23:26:56 +00:00
Guido van Rossum
26d95c3d07 More str/bytes fixes. 2007-08-27 23:18:54 +00:00
Guido van Rossum
e22905a06c More changes needed to make things work once bytes and str are truly divorced. 2007-08-27 23:09:25 +00:00
Guido van Rossum
25a29a9534 One further change. 2007-08-27 22:31:36 +00:00
Guido van Rossum
54a40cb81f Force test_xmlrpc to pass. I'm not happy with how I did this, but I don't
see a better way; the 'Binary' class is poorly specified so it's unclear
what behavior is relied upon.
2007-08-27 22:27:41 +00:00
Guido van Rossum
98b349f8e6 Fix some tests I broke. (More to follow.) 2007-08-27 21:47:52 +00:00
Guido van Rossum
1f2ca56e29 Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 20:44:15 +00:00
Guido van Rossum
09549f4407 Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 20:40:10 +00:00
Eric Smith
739e2ad64b Additional test for formatting code. 2007-08-27 19:07:22 +00:00
Guido van Rossum
9c62772d5e Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 18:31:48 +00:00
Guido van Rossum
700bd92677 Fix a few places that broke due to a recent change to io.py. 2007-08-27 18:10:06 +00:00
Guido van Rossum
5abbf750a2 Changes to io.py and socket.py by Christian Heimes.
- Replace all asserts by ValuleErrors or TypeErrors as appropriate.
- Add _checkReadable, _checkWritable methods; these check self.closed too.
- Add a test that everything exported by io.py exists, and is either
  an exception or an IOBase instance (except for the open function).
- Default buffering to 1 if isatty() (I had to tweak this to enforce
  the *default* bit -- GvR).
2007-08-27 17:39:33 +00:00
Guido van Rossum
6dab795351 Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 17:25:39 +00:00
Guido van Rossum
39478e8528 Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 17:23:59 +00:00
Guido van Rossum
85825dc1ff Changes preparing for stricter enforcement of bytes vs. str. 2007-08-27 17:03:28 +00:00
Eric Smith
e226b55963 PEP 3101: Removed _formatter_xxx routines from sysmodule, and made them unicode methods instead (per GvR suggestion). 2007-08-27 11:28:18 +00:00
Neal Norwitz
d082b6eaac os.getcwd() now returns a normal string (ie, unicode) 2007-08-26 23:37:53 +00:00
Guido van Rossum
19b4a272ea Cosmetics in error messages. 2007-08-26 23:30:31 +00:00
Eric Smith
7ade6485ab PEP 3101: Completed string.Formatter class. Reimplemented field_name to object transformation. 2007-08-26 22:27:13 +00:00
Neal Norwitz
2bf4d5ba28 Use the correct variable name 2007-08-26 22:16:55 +00:00
Guido van Rossum
e760631421 When elapsed and expected time differ, at least show their two values. 2007-08-26 20:03:04 +00:00
Neal Norwitz
93c56828a6 Use unicode (and bytes as appropriate) 2007-08-26 07:10:06 +00:00
Neal Norwitz
6ea45d3341 Use unicode and remove support for some uses of str8. 2007-08-26 04:19:43 +00:00
Kurt B. Kaiser
5b0fdc9d0a Fix another map(...) --> list(map...) 2007-08-26 04:18:40 +00:00
Neal Norwitz
7e95befeda Use unicode and stop supporting str8 2007-08-26 03:56:04 +00:00
Gregory P. Smith
9406f5cadb Use the new buffer api for input data. 2007-08-26 02:58:36 +00:00
Neal Norwitz
fce59bf72a Get the urllib tests to pass without the email package 2007-08-25 19:00:31 +00:00
Neal Norwitz
0337ef62fa Get test working when there are multiple dbs supported. 2007-08-25 18:00:36 +00:00
Neal Norwitz
fe61bb9a59 Disable test until email comes back 2007-08-25 17:57:37 +00:00
Neal Norwitz
cb51c6e953 Get test_pyclbr to pass after removing the email package 2007-08-25 17:23:06 +00:00
Guido van Rossum
6398b7a351 Remove the email package for now.
Once Barry and the email-sig have a working new version
we'll add it back.
If it doesn't make the 3.0a deadline (release August 31), too bad.
2007-08-25 13:43:02 +00:00
Eric Smith
8c66326368 Implementation of PEP 3101, Advanced String Formatting.
Known issues:

The string.Formatter class, as discussed in the PEP, is incomplete.

Error handling needs to conform to the PEP.

Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used

Need to make sure sign formatting is correct, more tests needed.

Need to remove '()' sign formatting, left over from an earlier version of the PEP.
2007-08-25 02:26:07 +00:00
Neal Norwitz
8d3654db22 Use unicode and add a "test" for syslog 2007-08-25 00:21:36 +00:00
Guido van Rossum
a401bbe5f0 Add a few mixed-mode (set vs. dict view) comparisons. 2007-08-24 23:51:55 +00:00
Guido van Rossum
cf2ce36fa2 Keir Mierle's improved tests for dict view containment tests. 2007-08-24 23:49:54 +00:00
Guido van Rossum
1d71996013 Add some mixed operations between sets and dict views. 2007-08-24 23:47:30 +00:00
Guido van Rossum
be534719da Add unit tests for set ops on dict.items(). 2007-08-24 23:43:52 +00:00
Guido van Rossum
523259ba07 Keir Mierle's set operations for dict views (keys/items only of course). 2007-08-24 23:41:22 +00:00