Barry Warsaw
08c82b8086
openfile(): Go back to opening the files in text mode. This undoes
...
the change in revision 1.11 (test_email.py) in response to SF bug
#609988 . We now think that was the wrong fix and that WinZip was the
real culprit there.
2002-10-07 17:27:55 +00:00
Barry Warsaw
487fe6ac39
_parsebody(): Use get_content_type() instead of the deprecated
...
get_type(). Also, one of the regular expressions is constant so might
as well make it a module global. And, when splitting up digests,
handle lineseps that are longer than 1 character in length
(e.g. \r\n).
2002-10-07 17:27:35 +00:00
Martin v. Löwis
45bb87bc13
Use escaped Unicode literals, according to PEP 8.
2002-10-07 17:27:15 +00:00
Barry Warsaw
1d475d3452
Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
...
with the standalone mimelib package.
2002-10-07 17:20:25 +00:00
Martin v. Löwis
e9ce0b0fea
Patch #448038 : Add move(). Report errors from copytree as in shutil.Error.
2002-10-07 13:23:24 +00:00
Martin v. Löwis
bb20bb6bdb
Patch #619493 : Prefer rpmbuild over rpm if available. Backported to 2.2.
2002-10-07 05:57:21 +00:00
Guido van Rossum
9cce029e48
Add test_pep277 to the expected skips on Linux. (This test seems to
...
be skipped everywhere except on Windows NT and descendants, but I'm
only going to add it to the skip list for the platform I can test.)
2002-10-06 20:36:31 +00:00
Martin v. Löwis
49c05d39e3
Patch #572031 : AUTH method LOGIN for smtplib
...
(most of the patch hides in rev. 1.59). Backported to 2.2.
2002-10-06 17:55:08 +00:00
Guido van Rossum
b03fac2ded
Make sure the email test suite can be run both stand-alone and under
...
supervision of regrtest.py. Will backport to 2.2.2.
2002-10-06 14:37:11 +00:00
Kurt B. Kaiser
c9a5b5c72e
Apply Josh Robb's Patch:
...
[ 617097 ] EditorWindow.py: underline recent files
Added a couple of mods to reduce the indentation level.
Note that the recent files menu doesn't update until
Idle is restarted, pre-existing bug, at least on Linux.
2002-10-06 01:57:45 +00:00
Tim Peters
1ee401fcf6
This test fails on Win98, which is fine, but when it failed it left
...
a junk directory behind that caused 4 other tests to fail later. Now
it cleans up after itself, and the 4 bogus later failures don't happen.
2002-10-05 17:54:56 +00:00
Kurt B. Kaiser
beb6bd9659
Josh Robb's Patch
...
[ 617109 ] WindowList.py: fix win98 quit.
2002-10-04 21:54:41 +00:00
Kurt B. Kaiser
a1dee06983
Apply Josh Robb's Patch
...
[ 617125 ] EditorWindow.py: Fix the wrap
(used 'none' instead of NONE)
2002-10-04 21:33:57 +00:00
Guido van Rossum
c8c6065231
When looking for an alias, first look for the normalized name (which
...
still may contain dots), then if that doesn't exist look for the name
with dots replaced by underscores. This is a little more forgiving.
2002-10-04 20:49:05 +00:00
Raymond Hettinger
bfcdb8734e
.iterkeys() is not needed.
2002-10-04 20:01:48 +00:00
Marc-André Lemburg
8dc5ff2e5a
Undo the removal. Guido mentioned that the encoding name is in active
...
by some email headers.
2002-10-04 16:30:42 +00:00
Marc-André Lemburg
68fc27385d
Remove unneeded alias.
2002-10-04 15:57:03 +00:00
Marc-André Lemburg
a40ea75625
Fix doc-string.
2002-10-04 11:58:24 +00:00
Marc-André Lemburg
9d158bb66f
Adapt lookup names to new more general encoding name normalization
...
scheme.
2002-10-04 11:51:39 +00:00
Marc-André Lemburg
7012673d67
Extending the encoding name normalization to handle more non-alphanumeric
...
characters.
2002-10-04 11:45:38 +00:00
Marc-André Lemburg
c7cdd7182a
Pulling Mark Alexander's contribution from CVS.
2002-10-04 09:30:06 +00:00
Mark Hammond
7995eb22f1
Tests for pep277 - Unicode file names on Windows NT.
2002-10-03 23:14:10 +00:00
Michael W. Hudson
adf1606161
Updates to track Grammar changes. The patch to token.py loosens the regexp to
...
allow "testlist1" to be snagged.
2002-10-03 09:42:01 +00:00
Mark Hammond
c2e85bd4e2
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
2002-10-03 05:10:39 +00:00
Guido van Rossum
eb287a2662
Fix an endcase bug: initial_indent was ignored when the text was short
...
enough to fit in one line.
2002-10-02 15:47:32 +00:00
Michael W. Hudson
fb4d6ecd07
Fix for the recursion_level bug Armin Rigo reported in sf
...
patch #617312 , both on the trunk and the 22-maint branch.
Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).
2002-10-02 13:13:45 +00:00
Barry Warsaw
0ac885e821
test__all__(): Fix the import list.
2002-10-01 17:57:06 +00:00
Skip Montanaro
70e1d9b59d
save the verbose argument as an instance attributes. Subclasses of
...
CCompiler may rely on the presence of self.verbose (SciPy's distutils
appears to).
2002-10-01 17:39:59 +00:00
Guido van Rossum
cc3a6df506
Commit fix for SF 603831.
...
Strangely, two out of three patches there seem already committed; but
the essential one (get rid of the assert in object_filenames in
ccompiler.py) was not yet applied.
This makes the build procedure for Twisted work again.
This is *not* a backport candidate despite the fact that identical
code appears to exist in 2.2.2; Twisted builds fine there, so there
must have been a change elsewhere.
2002-10-01 04:14:17 +00:00
Barry Warsaw
2d7fab1a45
Docstring consistency with the updated .tex files.
2002-10-01 00:52:27 +00:00
Barry Warsaw
1f84ff1d40
_structure(): Swap fp and level arguments.
2002-10-01 00:51:47 +00:00
Barry Warsaw
0ebc5c96c5
Docstring consistency with the updated .tex files.
2002-10-01 00:44:13 +00:00
Barry Warsaw
12272a2f22
Docstring consistency with the updated .tex files.
2002-10-01 00:05:24 +00:00
Barry Warsaw
48330687f3
Docstring consistency with the updated .tex files.
2002-09-30 23:07:35 +00:00
Barry Warsaw
0031982c21
Docstring consistency with the updated .tex files.
2002-09-30 22:15:00 +00:00
Barry Warsaw
03a7559654
Docstring consistency with the updated .tex files.
2002-09-30 21:29:10 +00:00
Barry Warsaw
fd2e8f7ea6
Docstring consistency with the updated .tex files.
2002-09-30 21:24:00 +00:00
Barry Warsaw
419b284b7c
__all__: Updated
2002-09-30 20:41:33 +00:00
Barry Warsaw
057b8428d0
Docstring consistency with the updated .tex files.
2002-09-30 20:07:22 +00:00
Guido van Rossum
679113702c
Now that TestCase is a new-style class, change loadTestsFromModule and
...
loadTestsFromName to accept new-style classes too!
2002-09-30 19:25:56 +00:00
Barry Warsaw
42d1d3edc0
__contains__(): Change the second argument to `name' for consistency.
...
I seriously doubt this will break any deployed code.
Docstring consistency with the updated .tex files.
2002-09-30 18:17:35 +00:00
Martin v. Löwis
21ee4091e1
Patch #615069 : Fix build problems on SCO Open Server 5. Backported to 2.2.
2002-09-30 16:19:48 +00:00
Barry Warsaw
174aa49a88
With help from Martin v. Loewis, clarification is added for the
...
semantics of header chunks using byte and Unicode strings.
Specifically,
append(): When the given string is a byte string, charset (whether
specified explicitly in the argument list or implicitly via the
constructor default) is the encoding of the byte string, and a
UnicodeError will be raised if the string cannot be decoded with that
charset. If s is a Unicode string, then charset is a hint specifying
the character set of the characters in the string. In this case, when
producing an RFC 2822 compliant header using RFC 2047 rules, the
Unicode string will be encoded using the following charsets in order:
us-ascii, the charset hint, utf-8.
__init__(): Use the global USASCII Charset instance when the charset
argument is None. Also, clarification in the docstring.
Also, use True/False where appropriate.
2002-09-30 15:51:31 +00:00
Jason Tishler
884554dfe5
Patch #544740 : test_commands test fails under Cygwin
...
Relax regular expression to handle spaces in user and group names.
2002-09-30 15:44:41 +00:00
Barry Warsaw
d20b66537c
The ansi_x3.4_1968 encoding is an alias for ascii, but isn't known in
...
Python 2.1.3. However it's required by the email tests suite, so poke
it into the encodings aliases if it's missing. The is apparently the
approved API for doing so.
Now we can remove the hexversion shortcircuits in the test suite.
2002-09-30 15:23:17 +00:00
Tony Lownds
f2324b9e89
Finding a suitable interpreter to spawn needed tweaking on the Mac
2002-09-29 00:34:10 +00:00
Guido van Rossum
bffa52f07f
Whitespace normalization (get rid of tabs).
2002-09-29 00:25:51 +00:00
Tony Lownds
af7a302c78
Mac users now see correct modifiers in the Key Binding Entry window.
2002-09-29 00:23:08 +00:00
Tony Lownds
6565b261b6
Change key binding to avoid conflict.
2002-09-29 00:10:15 +00:00
Barry Warsaw
d63071b05f
Make the tests pass under Python 2.1 but only by cheating. Python 2.1
...
doesn't know about the ansi-x3.4-1968 charset so skip two tests that
rely on that (msg_32.txt and msg_33.txt).
2002-09-28 21:22:52 +00:00