Skip Montanaro
1c0228a519
Another nit found by Neal Norwitz using pychecker. This was caused by a
...
too-mechanical translation when converting html() to text() (simply stripped
strong() where it appeared).
2004-06-07 11:20:40 +00:00
Neal Norwitz
1cdd3632a0
Cleanup: the in operator already returns a bool, no need to bool() it again
...
Cleanup: use condition to be consistent with code above
CookieJar is in cookielib
2004-06-07 03:49:50 +00:00
Neal Norwitz
492faa5505
There is no reason to have an underscore after self
2004-06-07 03:47:06 +00:00
Neal Norwitz
c75f891879
Remove a useless operation, setting name to itself
2004-06-07 03:45:56 +00:00
Skip Montanaro
f2134842b4
correct name error caught by Neal Norwitz with pychecker
2004-06-07 02:40:05 +00:00
Raymond Hettinger
5dae505bbd
Fix typo in comment.
2004-06-07 02:07:15 +00:00
Neal Norwitz
c28e7ad3d0
Try to improve test coverage for utime()
2004-06-06 20:27:05 +00:00
Neal Norwitz
7b0a5057af
Look for the multibyte codec map files in the parent directory too
...
This is similar to test_normalization, so that many source trees
can reference the same test file(s).
2004-06-06 20:09:49 +00:00
Skip Montanaro
0179a18034
add -L flag to cause leaks(1) command to run just before exit
2004-06-06 15:53:18 +00:00
Kurt B. Kaiser
4d5bc6031c
Noam Raphel: Further developemt of CodeContext feature.
...
The visibility state of the code context pane is now persistent between
sessions and the pane does not appear in the shell window.
M CodeContext.py
M EditorWindow.py
M NEWS.txt
M PyShell.py
M config-extensions.def
M configHandler.py
2004-06-06 01:29:22 +00:00
Neil Schemenauer
6412b121f6
Remove a number of tests that differ only in input data size. It seems
...
no bug motivated their inclusion and the chance of them triggering a
problem seems unlikely. Refactor to reduce code duplication. Rename
'hamlet_scene' to 'HAMLET_SCENE'. Test is much faster now. Closes #960995 .
2004-06-05 19:34:28 +00:00
Andrew M. Kuchling
26f6bdf4f1
[Bug #758665 ] cgitb.scanvars() fails because of an unititialized value variable. Patch from Robin Becker.
2004-06-05 19:15:34 +00:00
Neil Schemenauer
94afd3e7ae
Remove lots of magic constants.
2004-06-05 19:02:52 +00:00
Hye-Shik Chang
2400e93057
SF #877165 : Give an info about what C++ compiler command should be
...
used in cygwin and mingw32. (Reported by Michael Droettboom)
2004-06-05 18:37:53 +00:00
Skip Montanaro
58fc5d0813
Rewrote to use temporary files instead of StringIO objects in most places.
...
Goal is to work in the direction of universal newline support.
2004-06-05 17:03:20 +00:00
Andrew M. Kuchling
a2c9a98a0a
[Bug #897935 ] Fix fd leak in pty.spawn(). Reported by James Henstridge; 2.3 bugfix candidate.
2004-06-05 16:27:16 +00:00
Andrew M. Kuchling
b7d8ce0275
[Bug #921657 ] Allow '@' in unquoted HTML attributes. Not strictly legal according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
2004-06-05 15:31:45 +00:00
Raymond Hettinger
9021c95595
SF bug #964230 : random.choice([]) should return more intelligible exception
...
Add a comment to make the traceback less mysterious.
2004-06-05 14:53:22 +00:00
Andrew M. Kuchling
ba8b6bc86f
[Bug #954364 ] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
2004-06-05 14:11:59 +00:00
Hye-Shik Chang
39aef79821
Fix a bug that robotparser starves memory when the server responses
...
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
2004-06-05 13:30:56 +00:00
Andrew M. Kuchling
5962f457b4
[Bug #841757 ] Patch from /F to allow Unicode strings as struct keys
2004-06-05 12:35:58 +00:00
Andrew M. Kuchling
b12d97c275
[Bug #841757 ] Exercise handling of Unicode strings
2004-06-05 12:33:27 +00:00
Brett Cannon
0096e262ff
Refactored site.py into functions. Also moved over to using sets.
...
New regression test suite.
2004-06-05 01:12:51 +00:00
Raymond Hettinger
4e49b836db
SF patch #961387 : Make IDLE's paragraph reformatting width configurable
2004-06-04 06:31:08 +00:00
Hye-Shik Chang
3c145449da
Reuse width/iswide tests from strings_test. (Suggested by Walter Dörwald)
2004-06-04 04:24:54 +00:00
Hye-Shik Chang
6838c557fa
Add comments for unicode-only methods to give hints on AttributeError
...
tracebacks. (Suggested by Walter Dörwald)
2004-06-04 04:23:29 +00:00
Hye-Shik Chang
7bd860655f
Fix typo.
2004-06-04 03:19:17 +00:00
Hye-Shik Chang
5f5125997b
Add iswide() and width() method for UserString according as the
...
addition to unicode objects.
2004-06-04 03:18:12 +00:00
Jack Jansen
6b08a40442
Partial fix for #887242 (link extensions with dynamic_lookup in stead
...
of hard linking against the framework).
If $MACOSX_DEPLOYMENT_TARGET is set, and >= 10.3, during configure we
setup extensions to link with dynamic lookup. We also record the
value in the Makefile.
Distutils checks whether a value for MACOSX_DEPLOYMENT_TARGET was
recorded in the Makefile, and if it was insists that the current
value matches.
This is only a partial fix because it only applies to 2.4, and the
"two python problem" exists with Python 2.3 shipped with MacOSX 10.3,
which we have no influence over.
2004-06-03 12:41:45 +00:00
Martin v. Löwis
eac324b90b
Patch #957240 : Add count parameter to asyncore.loop.
2004-06-03 09:18:35 +00:00
Greg Ward
6186410db0
SF #965425 : fix so hyphenated words surrounded by punctuation are
...
wrapped correctly.
2004-06-03 01:59:41 +00:00
Walter Dörwald
118f931d07
Rename class attribute containing the class to be tested, so the name is the
...
same as for the string and sequence tests.
2004-06-02 18:42:25 +00:00
Andrew M. Kuchling
acf261862d
Remove reference to pcre module
2004-06-02 17:40:43 +00:00
Andrew M. Kuchling
4ad9723ed8
Remove pre module
2004-06-02 17:40:14 +00:00
Hye-Shik Chang
974ed7cfa5
- SF #962502 : Add two more methods for unicode type; width() and
...
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
2004-06-02 16:49:17 +00:00
Vinay Sajip
7dc8ec9091
Copyright year changed
2004-06-02 10:51:05 +00:00
Piers Lauder
0659452b8b
Added IMAP4_stream to __all__
2004-06-02 00:42:36 +00:00
Tim Peters
1f4bcf9edd
test_hash(): The test here is different enough from the one in the bug
...
report that the stats for expected # of collisions are a little higher.
Updated comments accordingly.
2004-06-01 18:58:04 +00:00
Andrew M. Kuchling
09e2cb0ba7
[Bug #962631 ] Fix typo reported by Bryan Blackburn
2004-06-01 12:48:19 +00:00
Raymond Hettinger
41bd02256f
SF bug #942952 : Weakness in tuple hash
...
(Basic approach and test concept by Tim Peters.)
* Improved the hash to reduce collisions.
* Added the torture test to the test suite.
2004-06-01 06:36:24 +00:00
Martin v. Löwis
504239fb38
Silence noise in regrtest.
2004-06-01 04:36:51 +00:00
Tim Peters
2f50e90818
SF patch 959726: sdist versus SVN
...
The disutils sdist command now ignores .svn directories.
2004-05-31 19:27:59 +00:00
Martin v. Löwis
92816de18e
Patch #932930 : suggest the use of rawstrings for backslashes.
2004-05-31 19:01:00 +00:00
Martin v. Löwis
2a6ba9097e
Patch #963318 : Add support for client-side cookie management.
2004-05-31 18:22:40 +00:00
Walter Dörwald
0a6d0ff8d9
Port the dictionary tests from test_types.py to unittest. Collect as much
...
mapping tests as possible in mapping_test.py and reuse the tests in
test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py.
From SF patch #736962 .
2004-05-31 16:29:04 +00:00
Walter Dörwald
cbd0b365c1
Fix typo (from SF bug #962602 )
2004-05-31 15:12:27 +00:00
Raymond Hettinger
027bb633b6
Add weakref support to sockets and re pattern objects.
2004-05-31 03:09:25 +00:00
Raymond Hettinger
cb87bc8e7e
Add weakref support to array.array and file objects.
2004-05-31 00:35:52 +00:00
Raymond Hettinger
691d80532b
Make sets and deques weak referencable.
2004-05-30 07:26:47 +00:00
Walter Dörwald
80ce6dd564
The default argument in dict.setdefault() defaults to None.
...
Add this default to weakref.WeakValueDictionary.setdefault()
and weakref.WeakKeyDictionary.setdefault() too.
2004-05-27 18:16:25 +00:00