Raymond Hettinger
fe59dc1bd8
Revert previous checkin.
2005-02-07 15:28:45 +00:00
Raymond Hettinger
f715366f23
Reduce the usage of the types module.
2005-02-07 14:16:21 +00:00
Raymond Hettinger
a164574937
Transform "x in (1,2,3)" to "x in frozenset([1,2,3])".
...
Inspired by Skip's idea to recognize the throw-away nature of sequences
in this context and to transform their type to one with better performance.
2005-02-06 22:05:42 +00:00
Raymond Hettinger
dbecd93b72
Replace list of constants with tuples of constants.
2005-02-06 06:57:08 +00:00
Raymond Hettinger
f7bf02ded5
SF patch #1028908
...
(John J Lee)
Minor code clarification and simplification.
2005-02-05 14:37:06 +00:00
Raymond Hettinger
bab4143348
SF patch #1116583 : NameError in cookielib domain check
2005-02-05 01:31:19 +00:00
Walter Dörwald
1f1d252f51
Add a test for UTF-16 reading where the byte sequence doesn't start with
...
a BOM.
2005-02-04 14:15:34 +00:00
Thomas Heller
07561b3b8e
Recompiled after source changes.
2005-02-03 20:48:26 +00:00
Fred Drake
e4772f3ada
fix XMLFilterBase.resolveEntity() so the caller gets the result
...
(PyXML bug #1112052 )
2005-02-03 17:31:39 +00:00
Guido van Rossum
d064142579
Security fix PSF-2005-001 for SimpleXMLRPCServer.py.
2005-02-03 15:01:24 +00:00
Kurt B. Kaiser
0676dfdce0
Add config-main.def option to make the 'history' feature non-cyclic.
...
Default remains cyclic. Python Patch 914546 Noam Raphael.
M IdleHistory.py
M NEWS.txt
M config-main.def
2005-02-03 01:37:14 +00:00
Steve Holden
69b8caa23a
Simplify string comparison using startswith()
2005-02-02 18:47:18 +00:00
Kurt B. Kaiser
acdef858a5
Removed ability to configure tabs indent from Options dialog. This 'feature'
...
has never worked and no one has complained. It is still possible to set a
default tabs (v. spaces) indent 'manually' via config-main.def (or to turn on
tabs for the current EditorWindow via the Format menu) but IDLE will encourage
indentation via spaces.
Enable setting the indentation width using the Options dialog.
Bug # 783877
Remove some commented out old code from configDialog.py (related to old
methods for invoking the HelpBrowser).
M EditorWindow.py
M NEWS.txt
M configHandler.py
2005-01-31 03:34:26 +00:00
Martin v. Löwis
1d11de6dbd
Revert os.py 1.75, and directly implement update.
...
Fixes #1110478 and #1100235 .
2005-01-29 13:29:23 +00:00
Kurt B. Kaiser
3069dbb8ec
Add keybindings for del-word-left and del-word-right.
...
M EditorWindow.py
M NEWS.txt
M config-keys.def
M configHandler.py
2005-01-28 00:16:16 +00:00
Brett Cannon
90cece7f89
Fixed typo in verbose output.
...
Closes bug #1110998 . Thanks Matthew Bogosian.
2005-01-27 22:48:30 +00:00
Raymond Hettinger
9feb267caf
Do not fold a constant if a large sequence will result.
...
Saves space in the presence of code like: (None,)*10000
2005-01-26 12:50:05 +00:00
Johannes Gijsbers
926d45bb4e
shutil.copytree: move copystat call for the directory after the loop
...
copying files inside the directory, as that loop changes the atime and
mtime.
2005-01-23 12:20:15 +00:00
Martin v. Löwis
4d394dfebb
Truncate st_?time before comparing it with ST_?TIME in the tests.
2005-01-23 09:19:22 +00:00
Walter Dörwald
1083c248df
Add a slice test with high < low.
2005-01-21 21:16:51 +00:00
Thomas Heller
1d1eac3ce8
Fix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.
...
Will backport myself.
2005-01-20 19:14:17 +00:00
Kurt B. Kaiser
6af4498602
1. Polish tabbing code.
...
2. Restore use of set_indentation_params(), was dead code since
Autoindent.py was merged into EditorWindow.py.
3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars
and set in EditorWindow.__init__()
4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1
explicitly (config() is eliminated).
5. Add Tabnanny check when Module is Run/F5, not just when Checked.
6. Discourage using an indent width other than 8 when using tabs to
indent Python code.
M EditorWindow.py
M NEWS.txt
M PyShell.py
M ScriptBinding.py
2005-01-19 00:22:59 +00:00
Kurt B. Kaiser
b00e89faab
If an extension can't be loaded, print warning and skip it instead of
...
erroring out.
2005-01-18 00:54:58 +00:00
Skip Montanaro
891a1ba3b2
allow triple-quoted string output from reconvert.quote()
2005-01-16 19:31:40 +00:00
Johannes Gijsbers
5954623bc0
Patch #1100140 : improved smtp connect debugging
...
Don't print the same (host, port) tuple thrice when debugging, but first print
(host, port), then (ip, port) and then the error message.
2005-01-16 13:04:30 +00:00
Martin v. Löwis
22b457e03b
Added SEEK_* constants. Fixes #711830 .
2005-01-16 08:40:58 +00:00
Guido van Rossum
5a8a03784e
Use descriptors.
2005-01-16 00:25:31 +00:00
Guido van Rossum
fee7b93c60
Use decorators.
2005-01-16 00:21:28 +00:00
Guido van Rossum
75b64e65f1
Use decorators.
2005-01-16 00:16:11 +00:00
Tim Peters
608c2fff69
Whitespace normalization.
2005-01-13 17:37:38 +00:00
Vinay Sajip
a1974c1459
Improved SysLogHandler error recovery (patch by Erik Forsberg)
2005-01-13 08:23:56 +00:00
Skip Montanaro
0af3ade6aa
Add strptime() constructor to datetime class. Thanks to Josh Spoerri for
...
the changes.
2005-01-13 04:12:31 +00:00
Andrew McNamara
7f2053eff3
Add counting of source iterator lines to the reader object - handy for
...
user error messages (otherwise difficult to do without instrumenting
the source).
2005-01-12 11:17:16 +00:00
Andrew McNamara
0f0599ddc1
When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields
...
to floats.
2005-01-12 09:45:18 +00:00
Andrew McNamara
5d45a8dc22
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
2005-01-12 08:16:17 +00:00
Andrew McNamara
c89f284df8
When using QUOTE_NONNUMERIC, we now test for "numericness" with
...
PyNumber_Check, rather than trying to convert to a float. Reimplemented
writer - now raises exceptions when it sees a quotechar but neither
doublequote or escapechar are set. Doublequote results are now more
consistent (eg, single quote should generate """", rather than "",
which is ambiguous).
2005-01-12 07:44:42 +00:00
Andrew McNamara
31d8896ee2
Rename csv.set_field_limit to csv.field_size_limit (since it both sets and
...
gets).
2005-01-12 03:45:10 +00:00
Andrew McNamara
af1e312b3b
Improve test coverage fractionally.
2005-01-12 01:55:21 +00:00
Kurt B. Kaiser
1b6f398c98
Improve error handling when .idlerc can't be created.
2005-01-11 19:29:39 +00:00
Raymond Hettinger
faa10ebdd0
SF bug #1099516 : tempfile files not types.FileType
...
Clarified that the returned object is file-like rather than an actual file.
2005-01-11 15:33:03 +00:00
Andrew McNamara
e4d05c4f93
Set an upper limit on the size of the field buffer, raise an exception
...
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.
2005-01-11 07:32:02 +00:00
Raymond Hettinger
a422c34b70
SF 1098985: set objects cannot be marshalled
2005-01-11 03:03:27 +00:00
Andrew McNamara
7130ff5eb9
Replace python-coded validation of csv dialect with a call to the C
...
dialect type (which has a better idea of what is and isn't valid).
2005-01-11 02:22:47 +00:00
Andrew McNamara
8c94b42f31
No longer attempt to instantiate python classes describing dialects. This
...
was done because we were previously performing validation of the dialect
from python, but this is now down within the C module. Also, the method
we were using to detect classes did not work with new-style classes.
2005-01-11 02:18:36 +00:00
Andrew McNamara
86625972a1
Allow dialect-describing keywords to be supplied to register_dialect,
...
record objects of internal dialect type, rather than instances of
python objects.
2005-01-11 01:28:33 +00:00
Tim Peters
b497c106d5
Whitespace normalization.
2005-01-10 16:48:37 +00:00
Walter Dörwald
9fa0946771
Fix and test for SF bug #1098990 : codec readline() splits lines apart.
2005-01-10 12:01:39 +00:00
Johannes Gijsbers
c0b194a770
Bug #489256 : remove out of date and out of place profile.doc, and let
...
profile.help() point at the library reference instead of profile.doc.
2005-01-10 09:07:22 +00:00
Andrew McNamara
36a7691c2d
Fix parsing of csv files with escapes (escape character previously would be
...
left in stream).
2005-01-10 01:04:40 +00:00
Johannes Gijsbers
41e4faa82b
Patch #712317 : In URLs such as http://www.example.com?query=spam , treat '?' as
...
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would
become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in
<authority>. See bug #548176 for further discussion.
2005-01-09 15:29:10 +00:00
Johannes Gijsbers
cdd625a770
Patch #1095362 : replace hardcoded test for POST/GET with call to get_method,
...
removing some duplication and gaining some flexibility in the process.
2005-01-09 05:51:49 +00:00
Johannes Gijsbers
2abe785fee
Move code in __name__ == '__main__' block into main() function, rewrite code so
...
there's no need to subclass OptionParser.
2005-01-09 01:58:02 +00:00
Johannes Gijsbers
9ddb300598
Patch #936774 : unify the display of data descriptors, including slots,
...
properties, and custom descriptors.
* removed special handling of properties
* added special handling of data descriptors - All data descriptors are grouped
together in a section. For each item, the attribute name and doc string, if
present, is displayed.
* disabled display of __slots__ attribute - since slots are descriptors, they
are listed in the section described above
Thanks to John Belmonte for the patch!
2005-01-08 20:16:43 +00:00
Johannes Gijsbers
9a98364ba3
Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation is
...
still the same, so there should be no backwards-compatibility problems.
2005-01-08 14:12:27 +00:00
Johannes Gijsbers
c7fc10a418
Patch #1079734 : remove dependencies on (deprecated) rfc822 and mimetools
...
modules, replacing with email. Thanks to Josh Hoyt for the patch!
2005-01-08 13:56:36 +00:00
Johannes Gijsbers
a3beee185c
Clean up tests by reusing functions from other modules:
...
* replace deltree with shutil.rmtree()
* replace mkdirs with os.makedirs()
* fold touchfile into GlobTests.mktemp()
2005-01-08 13:28:54 +00:00
Johannes Gijsbers
836f5433f7
Patch #943206 :
...
`glob.glob()` currently calls itself recursively to build a list of matches of
the dirname part of the pattern and then filters by the basename part. This is
effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all
directories 5 levels deep even if only a handful of them contain a ``foo``
entry. A generator-based recusion would never have to store these list at once
by implementing DFS. This patch converts the `glob` function to an `iglob`
recursive generator . `glob()` now just returns ``list(iglob(pattern))``.
I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and
created a second `glob0` helper func so that the main loop need not be
duplicated).
Thanks to Cherniavsky Beni for the patch!
2005-01-08 13:13:19 +00:00
Johannes Gijsbers
e4172eadf3
Patch #1094015 :
...
* Use os.makedirs() instead os.mkdir(). (bug #975763 )
* Use copystat() to copy directory bits (bug #1048878 )
2005-01-08 12:31:29 +00:00
Tim Peters
711906e0c2
threading._DummyThread.__init__(): document obscure new code.
...
test_threading.test_foreign_thread(): new test does a basic check that
"foreign" threads can using the threading module, and that they create
a _DummyThread instance in at least one use case. This isn't a very
good test, since a thread created by thread.start_new_thread() isn't
particularly "foreign".
2005-01-08 07:30:42 +00:00
Tim Peters
84d548994e
Converted to a unittest. Added checks that the bounded semaphore actually
...
does what it's supposed to do.
2005-01-08 06:03:17 +00:00
Brett Cannon
e6539c4401
In _DummyThread objects the lock stored in __block (allocated thanks to
...
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #1089632 .
2005-01-08 02:43:53 +00:00
Raymond Hettinger
922b3e2098
Remove test for BINARY_DIVIDE.
2005-01-07 18:34:56 +00:00
Tim Peters
5a9fb3c415
Whitespace normalization.
2005-01-07 16:01:32 +00:00
Jack Jansen
1dd087cbad
Allow relative URLs for included databases and packages.
2005-01-07 13:43:31 +00:00
Raymond Hettinger
97db05de3e
SF #75103 : imghdr -- identify JPEGs in EXIF format
2005-01-07 08:15:41 +00:00
Andrew McNamara
1196cf185c
Improved the implementation of the internal "dialect" type. The new
...
implementation features better error reporting, and better compliance
with the PEP.
2005-01-07 04:42:45 +00:00
Skip Montanaro
f26285ce0b
add a couple missing docstrings
2005-01-05 06:54:58 +00:00
Jack Jansen
af304a6c16
- Added an "installer" flavor, which uses the "open" command to install
...
something (overridable through Install-command entry)
- Hidden status is now determined by flavor == hidden, not by
missing Download-URL. Hidden packages behave like installer packages.
- Made some error messages a bit more understandable.
Because there's new functionality the version has been upped to 0.5.
2005-01-03 15:44:18 +00:00
Raymond Hettinger
362b929222
Removed unused line.
2005-01-03 07:33:16 +00:00
Raymond Hettinger
0c26ab02e6
Removed unused line.
2005-01-03 07:14:12 +00:00
Raymond Hettinger
c34f8673a1
Teach the peephole optimizer to fold simple constant expressions.
2005-01-02 06:17:33 +00:00
Peter Astrand
f791d7a278
On UNIX, when the execution of the child fails, we must waitpid() to
...
prevent leaving zombies.
2005-01-01 09:38:57 +00:00
Peter Astrand
454f76711c
New subprocess utility function: check_call. Closes #1071764 .
2005-01-01 09:36:35 +00:00
Raymond Hettinger
ed2dbe3f33
SF patch #1094007 : Remove witty comment in pydoc.py
...
(Removed at Ping's request.)
2005-01-01 07:51:01 +00:00
Raymond Hettinger
346e67f805
SF patch #1051395 : locale.getdefaultlocale does not return tuple in some OS
...
(Contributed by Jiwon Seo.)
2005-01-01 06:10:26 +00:00
Raymond Hettinger
f871d833dd
Remove some lambdas.
2004-12-31 21:59:02 +00:00
Raymond Hettinger
a617271dbd
Use cStringIO where available.
2004-12-31 19:15:26 +00:00
Walter Dörwald
ee1d24703f
Add a test that checks the basic functionality of every encoding.
2004-12-29 16:04:38 +00:00
Walter Dörwald
6cea693362
Fix wrong variable name.
2004-12-29 15:28:09 +00:00
Walter Dörwald
e1a0391b49
Fix wrong variable name.
2004-12-29 13:11:10 +00:00
Jack Jansen
702af67d47
- getDefaultDatabase wasn't listed in __all__.
...
- using a different database for non-final releases should only be done
for X.Y.0. Non-final micro releases can use the default database just fine,
as they are required to be backward compatible.
2004-12-28 21:33:27 +00:00
Andrew M. Kuchling
3b585b30c0
[Bug #1083110 ] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
2004-12-28 20:10:48 +00:00
Jack Jansen
c77f6dfd92
Fix for #1091468 : DESTROOTed frameworkinstalls fail. Added a --destroot
...
option to various tools, and do the right thing when we're doing a destroot
install.
Will backport to 2.4 and 2.3.
2004-12-27 15:51:03 +00:00
Jack Jansen
be95462c1c
After discussion on the PythonMac-SIG it was decided that it is better
...
to make using "-undefined dynamic_lookup" for linking extensions more
automatic on 10.3 and later. So if we're on that platform and
MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX
version during configure. Additionally, distutils will pick up the
configure-time value by default.
Will backport.
2004-12-26 23:07:48 +00:00
Armin Rigo
a174813113
Dima Dorfman's patch for coercion/comparison of C types (patch #995939 ), with
...
a minor change after the coercion, to accept two objects not necessarily of
the same type but with the same tp_compare.
2004-12-23 22:13:13 +00:00
Kurt B. Kaiser
e852c194e3
Improve error message if rpc'l localcall() fails with unexpected
...
exception.
2004-12-23 04:39:55 +00:00
Kurt B. Kaiser
5c3df35b6b
The GUI was hanging if the shell window was closed while a raw_input()
...
was pending. Restored the quit() of the readline() mainloop().
http://mail.python.org/pipermail/idle-dev/2004-December/002307.html
M NEWS.txt
M PyShell.py
2004-12-23 04:20:59 +00:00
Thomas Heller
ee4bb6612a
Recompiled after source changes.
2004-12-22 17:24:36 +00:00
Jeremy Hylton
b300ae3a79
Two small changes, SF bug #974757 and SF patch #1037974 .
...
Pass the full URL to find_user_password(), in particular so that hosts
with port numbers can be looked up.
Also specify the digest algorithm, even if it's MD5. Titus Brown
verified that this fixes a problem with LiveJournal.
2004-12-22 14:27:19 +00:00
Jeremy Hylton
6414cd8717
SF patch #1055159 via Titus Brown: Document redirect limitation.
...
Bug fix candidate.
2004-12-22 14:19:09 +00:00
Fred Drake
7c404a4bf7
add __file__ to the globals available for tests loaded via DocFileSuite;
...
this is useful for locating supporting data files, just as it is in Python
modules
2004-12-21 23:46:34 +00:00
Walter Dörwald
e57d7b179a
The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()
...
trying to return a complete line even if a size parameter was given (see
http://www.python.org/sf/1076985 ). This leads to buffer overflows with long
source lines under Windows if e.g. cp1252 is used as the source encoding.
This patch reverts the behaviour of readline() to something that behaves more
like Python 2.3: If a size parameter is given, read() is called only once.
As a side effect of this, readline() now supports all types of linebreaks
supported by unicode.splitlines().
Note that the tokenizer is still broken and it's possible to provoke segfaults
(see http://www.python.org/sf/1089395 ).
2004-12-21 22:24:00 +00:00
Kurt B. Kaiser
dcba6622f5
The remote procedure call module rpc.py can now access data attributes of
...
remote registered objects. Changes to these attributes are local, however.
M EditorWindow.py
M NEWS.txt
M PyShell.py
M idlever.py
M rpc.py
M run.py
2004-12-21 22:10:32 +00:00
Raymond Hettinger
6065d32325
SF bug #951915 : fix bug in StringIO.truncate - length not changed
...
(Patch by Armin Rigo.)
2004-12-20 23:51:53 +00:00
Armin Rigo
2ccea17856
Any call to marshal.dumps() with the new optional argument 'version' just
...
immediately segfaults, due to a typo! This was obviously never tested...
Added a test for it, and also fixed the documentation.
2004-12-20 12:25:57 +00:00
Raymond Hettinger
7b4b788eaa
Bugs item #1069409 C:\Python24\Lib\compileall.py returns False
...
* return an integer rather than a boolean
2004-12-20 00:29:29 +00:00
Brett Cannon
94eaee6d49
Skip test_imp if threading is not available.
...
Closes bug #1083645 . Thanks Detlef Vollmann.
2004-12-18 21:06:55 +00:00
Raymond Hettinger
7e71fa5cfa
Bug #1083645
...
* The decimal module wouldn't load on builds without threads.
2004-12-18 19:07:19 +00:00
Raymond Hettinger
bf72b71630
Refactor:
...
* Improve algorithm -- no more O(n) steps except sched.cancel().
* Improve thread safety of sched.run() and sched.empty()
(other threads could alter the queue between the time the queue was
first checked and when the lead event was deleted).
* Localize variable access in sched.run() to minimize overhead.
2004-12-17 13:52:20 +00:00
Raymond Hettinger
b0900e6a21
SF #1085304 : Make array.array pickle-able
2004-12-16 16:23:40 +00:00
Walter Dörwald
29ddfba3d8
Fix copy & paste error in comments.
2004-12-14 21:28:07 +00:00
Marc-André Lemburg
b4cebd465a
Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib
...
doesn't seem to like "UTF-8").
Removed the UTF-8 aliases since these should be available for all locales.
2004-12-13 19:56:01 +00:00
Johannes Gijsbers
1542f34c42
Patch #1011890 : fix inspect.getsource breaking with line-continuation &
...
more. Thanks to Simon Percivall!
The patch makes changes to inspect.py in two places:
* the pattern to match against functions at line 436 is
modified: lambdas should be matched even if not
preceded by whitespace, as long as "lambda" isn't part
of another word.
* the BlockFinder class is heavily modified. Changes are:
- checking for "def", "class" or "lambda" names
before setting self.started to True. Then checking the
same line for word characters after the colon (if the
colon is on that line). If so, and the line does not
end with a line continuation marker, raise EndOfBlock
immediately.
- adding self.passline to show that the line is to be
included and no more checking is necessary on that
line. Since a NEWLINE token is not generated when a
line continuation marker exists, this allows getsource
to continue with these functions even if the following
line would not be indented.
Also add a bunch of
'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.
2004-12-12 16:46:28 +00:00
Johannes Gijsbers
cb9015dc08
Patch #736962 : port test_inspect to unittest. As part of this, move out
...
the fodder modules to separate files to get rid of the imp.load_source()
trickery.
2004-12-12 16:20:22 +00:00
Johannes Gijsbers
6b220b0355
Use os.geteuid() for checking whether we are root, as suggested by
...
Michael Hudson.
2004-12-12 15:52:57 +00:00
Raymond Hettinger
a9ef5e565d
SF bug #1083202L UnboundLocalError raised by atexit module
...
The sys module could be called before being imported.
2004-12-11 02:49:40 +00:00
Marc-André Lemburg
bb4f1bdd8b
locale.py now uses an updated locale alias table (built using
...
Tools/i18n/makelocalealias.py, a tool to parse the X11 locale
alias file); the encoding lookup was enhanced to use Python's
encoding alias table
As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize
valid locale setting.
2004-12-10 21:58:14 +00:00
Marc-André Lemburg
9ab8818c87
Rearranged mappings to value sorting order.
2004-12-10 21:54:35 +00:00
Tim Peters
7f06187d31
Whitespace normalization.
2004-12-07 21:17:46 +00:00
Fred Drake
333da5f000
remove the other half of one of the regsub-related comments; the other
...
half was removed in revision 1.25
2004-12-07 14:08:24 +00:00
Raymond Hettinger
6c1e0fe7ba
Remove reference to old pickle feature.
2004-12-07 08:26:10 +00:00
Raymond Hettinger
57aef9cb29
Remove outdated references to the regsub module.
2004-12-07 07:55:07 +00:00
Raymond Hettinger
a6b45cc31d
Eliminate the deprecated option to return None instead of a tuple of arguments in __reduce__().
2004-12-07 07:05:57 +00:00
Brett Cannon
84667c063a
Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparse
...
instead of getopt. Required making use of gettext._ as optional (optparse
changed OK'ed by Greg Ward in private email).
2004-12-07 03:25:18 +00:00
Johannes Gijsbers
25946ddac9
Patch #1075928 : AUTH PLAIN in smtplib.
...
smtplib can not log in to some server using command AUTH PLAIN, it sends
``user\0user\0pass'' to the server, but ``\0user\0pass'' has better
compatibility.
2004-12-06 21:25:26 +00:00
Johannes Gijsbers
b8b09d0513
SF bug #1076467 : don't run test_on_error as root, as the permission
...
errors don't get provoked that way. Also add a bunch of cross-references
to bugs.
2004-12-06 20:50:15 +00:00
Brett Cannon
c8aa848ece
Have test_mkalias_relative check that sys.prefix already exists; otherwise test
...
is pointless.
Also add a note to the docs for the 'test' package that test cases should check
first that any conditions needed in the operating system are met before having
a test run.
Closes bug #1077302 . THanks, Ian Holsman.
2004-12-06 06:08:59 +00:00
Peter Astrand
5f5e141589
Changed signature of call function to avoid confusion: this 'args' is not the same as the one to the Popen constructor
2004-12-05 20:15:36 +00:00
Raymond Hettinger
c7979f16ec
Removed deprecated tzparse module.
2004-12-05 11:38:18 +00:00
Raymond Hettinger
b2594050ea
Added optional None arguments to itertools.islice().
2004-12-05 09:25:51 +00:00
Raymond Hettinger
3489cad30a
Removed the deprecated bin parameter from the pickle module.
2004-12-05 05:20:42 +00:00
Raymond Hettinger
4ebe364277
Remove the deprecated statcache module.
2004-12-05 04:55:14 +00:00
Raymond Hettinger
1bc82f891c
Removed deprecated method arguments from the shelve module.
2004-12-05 03:58:17 +00:00
Barry Warsaw
7cf9ce2440
Fixes for SF #1076485 , which I'll apply to the CVS head too. The problem was
...
caused by a self._input.readline() call that wasn't checking for the
NeedsMoreData marker.
msg_43.txt contains a message that illustrates the problem, when
email.message_from_*() is called. That interface uses the Parser API, which
splits reads into 8192 byte chunks. It so happens that for the test message,
the 8192 chunk falls inside a message/delivery-status, which is where in the
FeedParser the readline() call was that didn't check for NeedsMoreData.
I also added an assert to unreadline() so it'll be more evident if an attempt
to push back NeedsMoreData ever happens again.
Bump the email package version number.
2004-12-05 03:45:42 +00:00
Raymond Hettinger
6c92d76abc
Removed deprecated method from pstats.
2004-12-05 03:28:00 +00:00
Raymond Hettinger
f3fa9460de
Removed deprecated use_statcache argument.
2004-12-05 01:58:09 +00:00
Raymond Hettinger
664347be94
SF bug #1078905 : Docs for unittest run() methods are misleading
2004-12-04 21:21:53 +00:00
Raymond Hettinger
46ea4c810f
For the benefit of historians . . .
2004-12-04 20:07:30 +00:00
Raymond Hettinger
784ab76c87
Remove the deprecated whrandom module.
2004-12-04 10:50:51 +00:00
Raymond Hettinger
3b0c7c20a1
SF patch #1077353 : add key= argument to min and max
...
(First draft of patch contributed by Steven Bethard.)
2004-12-03 08:30:39 +00:00
Marc-André Lemburg
58d89dba7d
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
2004-12-02 20:14:16 +00:00
Raymond Hettinger
4901a1f267
Add key= argument to heapq.nsmallest() and heapq.nlargest().
2004-12-02 08:59:14 +00:00
Thomas Heller
0e920a7244
Recompiled binaries after source changes.
2004-12-01 19:43:34 +00:00
Peter Astrand
738131d391
Raise TypeError if bufsize argument is not an integer. Patch 1071755, slightly modified.
2004-11-30 21:04:45 +00:00
Peter Astrand
6fdf3cbb13
Corrected example for replacing shell pipeline. Fixes bug 1073790.
2004-11-30 18:06:42 +00:00
Anthony Baxter
e2648eeb14
doodedoodedoo on the way to 2.4 final
2004-11-30 01:28:55 +00:00
Raymond Hettinger
e1defa4175
Fix argument order in pure python version of nsmallest() and nlargest().
2004-11-29 05:54:48 +00:00
Barry Warsaw
f4c7c402d4
RFC 2822 describes the characters allowed in a header field name. Conform to
...
this, and add test cases.
2004-11-29 03:46:54 +00:00
Anthony Baxter
e48bad7a24
preparing for 2.4 final (wooooooo!)
2004-11-29 01:40:31 +00:00
Barry Warsaw
99b7d6445c
There's likely nothing more to do to the email package before Python 2.4 is
...
final, so I'm marking email's version number as "3.0" (e.g. final).
2004-11-29 01:10:14 +00:00
Tim Peters
26be2067e8
Whitespace normalization.
2004-11-28 01:10:01 +00:00
Barry Warsaw
2e8c1f189a
Fix for SF bug #1072623 . When the last line of the input string does not end
...
in a newline, and it's an end boundary, the FeedParser wasn't recognizing it
as such. Tweak the regexp to make the ending linesep optional.
For grins, clear self._partial when closing the BufferedSubFile.
Added a test case.
2004-11-28 00:21:42 +00:00
Walter Dörwald
f7f9b6cb2d
Fix typo in comment.
2004-11-25 12:23:23 +00:00
Fredrik Lundh
cb328f393e
SF patch #1071739 (by Christos Georgiou)
...
This patch offers a better explanation in case the MS VC++ (free)
toolkit is installed but the .NET Framework SDK is not.
2004-11-24 22:31:11 +00:00
Raymond Hettinger
605ed02483
SF bug #1071588 coercing decimal to int doesn't work between -1 and 1
2004-11-24 07:28:48 +00:00
Brett Cannon
3684c8771e
Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to the
...
Windows GDI directly and thus does not need a DISPLAY environment variable.
Thanks Jason Tishler.
2004-11-24 03:01:36 +00:00
Johannes Gijsbers
8e6f2ded30
Bug #1071513 : don't test on Cygwin, as chmod doesn't work reliably there
...
(http://www.cygwin.com/faq/faq_3.html#SEC41 ).
Also check whether onerror has actually been called so this test will
fail on assertion instead of on trying to chmod a non-existent file.
2004-11-23 09:27:27 +00:00
Brett Cannon
08febebf96
Add 'linux2' as one of the platforms that does not use the echo service as one
...
of the test possiblities for testGetServBy().
2004-11-20 21:10:07 +00:00
Kurt B. Kaiser
e953511858
On OpenBSD, terminating IDLE with ctrl-c from the command line caused a
...
stuck subprocess MainThread because only the SocketThread was exiting.
M NEWS.txt
M idlever.py
M run.py
2004-11-19 15:46:49 +00:00
Anthony Baxter
5cc727ad7b
2.4rc1
2004-11-18 12:32:27 +00:00
Peter Astrand
2224be64dc
Remove tempfile after use in test_call_string.
...
In test_args_string, remove the tempfile before assertEqual.
2004-11-17 20:06:35 +00:00
Kurt B. Kaiser
03562a5e62
Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"
...
button) caused IDLE to fail on restart (no new keyset was created in
config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535.
2004-11-16 21:31:08 +00:00
Kurt B. Kaiser
5acdf93081
Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"
...
button) caused IDLE to fail on restart (no new keyset was created in
config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535.
M configDialog.py
2004-11-16 21:28:36 +00:00
Walter Dörwald
1b626cac73
Fix pprint to be able to handle objects that don't have a __repr__
...
attribute. Fixes SF bug #1065456 .
2004-11-15 13:51:41 +00:00
Martin v. Löwis
6fe8f1928f
Back out rev 1.96; see #1009389 .
2004-11-14 10:21:04 +00:00
Kurt B. Kaiser
f7a8899f33
The change in the linecache.checkcache() signature at rev 1.13 caused IDLE to exit
...
when an exception was raised while running w/o the subprocess. Python Bug 1063840
M NEWS.txt
M PyShell.py
2004-11-13 21:05:58 +00:00
Tim Peters
bbc0d4409c
SF bug 1065388: calendar day/month name lookup too slow
...
__getitem__() methods: compute only the new spellings needed to satisfy
the given indexing object. This is purely an optimization (it should
have no effect on visible semantics).
2004-11-13 16:18:32 +00:00
Martin v. Löwis
fba7369824
Patch #1050475 : Fix various x86_64 build issues
...
regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems.
_tkinter.c: replace %.8x with %p for printing pointers.
setup.py: add lib64 into the library directories.
2004-11-13 11:13:35 +00:00
Walter Dörwald
aee4da6b83
Add options to regrtest.py to make it possible to specify where to put
...
the coverage files when -T is used.
2004-11-12 18:51:27 +00:00
Tim Peters
0ca0c64409
SF bug 1054821: difflib HtmlDiff() extra space on inserted 1 character lines
...
Simple correction from the code's author (Dan Gass).
2004-11-12 16:12:15 +00:00
Peter Astrand
195404ff90
Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64
...
TEMP dirs with {memb} strings. Fixes #1063571 .
2004-11-12 15:51:48 +00:00
Just van Rossum
2dae7646c3
On second thought: "Errors should never pass silently", so barf when a
...
string contains control chars that are illegal for XML
2004-11-12 09:36:12 +00:00
Just van Rossum
48ecaccf9e
testing control chars and non-dict root objects
2004-11-12 08:34:32 +00:00
Just van Rossum
b84330d368
- \f is not a valid XML character
...
- reformatted regex pattern, use r"" consistently
2004-11-12 08:14:49 +00:00
Just van Rossum
26e811abd5
reordered a couple of things
2004-11-12 08:02:35 +00:00
Martin v. Löwis
5a6601cfc6
Update compatibility comments to 2.1, corresponding to PEP 291 1.13.
2004-11-10 22:23:15 +00:00
Thomas Heller
41f7038a3e
Avoid a linker warning: MSVC 7 doesn't support /pdb:None, the debug
...
info will always be in a .pdb file.
2004-11-10 09:01:41 +00:00
Raymond Hettinger
952f8808b2
SF patch #1062279 : deque pickling problems
...
(Contributed by Dima Dorfman.)
* Support pickling of dictionaries in instances of deque subclasses.
* Support pickling of recursive deques.
2004-11-09 07:27:35 +00:00
Raymond Hettinger
15056a5202
SF 1062353: set pickling problems
...
Support automatic pickling of dictionaries in instance of set subclasses.
2004-11-09 07:25:31 +00:00
Tim Peters
7960bf9c00
And delete a useless comment.
2004-11-08 22:31:09 +00:00
Tim Peters
d7bbbbc594
_OutputRedirectingPdb.trace_dispatch(): Return the base class's
...
trace_dispatch() result in a more obvious, and more robust way.
2004-11-08 22:30:28 +00:00
Tim Peters
50c6bdb1d6
test_doctest.py test_pdb_set_trace_nested(): A new test from Jim Fulton
...
showing that doctest's pdb.set_trace() support was dramatically broken.
doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace
function instead of (implicitly) None. Else interaction with pdb was
bizarre, noticing only 'call' events. Amazingly, the existing set_trace()
tests didn't care.
2004-11-08 22:07:37 +00:00
Michael W. Hudson
e0b855fac9
test for fixedness of bug #1057835 .
...
(thanks to Raymond for the prod).
2004-11-08 16:46:02 +00:00
Michael W. Hudson
05522ad795
Fix bug
...
[ 1057835 ] compiler.transformer, "from module import *"
2004-11-08 12:17:34 +00:00
Raymond Hettinger
481b09b352
SF #1062190 . Removed an assertion that rendered trace.py unnecessarily
...
inflexibile.
2004-11-08 06:36:42 +00:00
Martin v. Löwis
d6eb3523f6
Stop printing listdir bytestring output, as the precise list of strings
...
returned depends on the filesystem encoding.
2004-11-07 20:01:56 +00:00
Martin v. Löwis
cd24699256
Try a different filename if the Latin-1 file name cannot
...
be represented in the file system. Fixes #989338 .
2004-11-07 19:57:35 +00:00
Johannes Gijsbers
8de645a176
Patch #1061931 / bug #971872 : factor out part of spillproperties, so
...
properties are also documented if help(Class.<property>) is called
instead of help(Class).
2004-11-07 19:16:05 +00:00
Jeremy Hylton
def9d2a17c
Fix for SF bug 988120 via patch 1061941.
...
If read() returned less than the number of bytes request, the full amount was subtracted from length instead of the actually read amount.
2004-11-07 16:13:49 +00:00
Johannes Gijsbers
d7b6ad4b60
Patch #1061904 / bug #878275 : give a nicer error message when someone
...
accidentally derives from TestSuite instead of TestCase.
2004-11-07 15:46:25 +00:00
Peter Astrand
c1d6536d60
When using shell=True on Windows, don't display a shell window by default. Fixes #1057061 .
2004-11-07 14:30:34 +00:00
Johannes Gijsbers
84a6c205e3
Bug #1055168 : calling pdb.set_trace() calls Bdb.set_trace, which made
...
the debugger enter inside pdb.set_trace.
Patch #1061767 : make pdb.set_trace enter enter at the stack frame
calling pdb.set_trace().
2004-11-07 11:35:30 +00:00
Tim Peters
00afb07490
Whitespace normalization.
2004-11-07 04:52:29 +00:00
Tim Peters
90cf212cef
Essentially SF patch 1061679: add missing __all__ to pickletools.py.
...
Harmless.
2004-11-06 23:45:48 +00:00
Raymond Hettinger
8a92dd5866
Don't choke on modes like rb or wb.
2004-11-06 00:31:51 +00:00
Barry Warsaw
93d9d5fb37
get_boundary(): Fix for SF bug #1060941 . RFC 2046 says boundaries may begin
...
-- but not end -- with whitespace.
I will backport to Python 2.3.
2004-11-06 00:04:52 +00:00
Barry Warsaw
932874df39
test_boundary_with_leading_space(): Test case for SF bug #1060941 . RFC 2046
...
says boundaries may begin -- but not end -- with whitespace.
I will backport to Python 2.3.
2004-11-06 00:04:20 +00:00
Anthony Baxter
b0c6630794
post-release
2004-11-04 05:23:17 +00:00
Skip Montanaro
599bd5e1e1
Fix bug 1052242. Also includes rewrite of test case using unittest and
...
avoiding use of popen.
2004-11-04 04:31:30 +00:00
Anthony Baxter
9f41f3a192
release shenanigans
2004-11-03 06:21:37 +00:00
Raymond Hettinger
5dec096e6a
Maintain peepholer's cumlc invariant by updating the running total
...
everytime a LOAD_CONSTANT is encountered, created, or overwritten.
Added two tests to cover cases affected by the patch.
2004-11-02 04:20:10 +00:00
Raymond Hettinger
f7010bed89
* Bumped up the sleep() delay to four seconds so this test will run
...
reliably on WinME with FAT32.
* Native speaker rewrite of the comment block.
* Removed unnecessary backslashes from the multi-line function defintions.
2004-11-01 22:27:14 +00:00
Walter Dörwald
bb9c739806
Add error checks for the bz2, cStringIO and operator modules.
...
Add function names to various PyArg_ParseTuple calls in bz2module.c.
2004-11-01 17:10:19 +00:00
Hye-Shik Chang
4a8d851910
Bug #1057993 : Use sleep() always instead of os.utime() possibly broken
...
in some platforms.
2004-11-01 08:26:09 +00:00
Barry Warsaw
8c72eae237
SF patch #1056967 , changes the semantics of Template.safe_substitute() to not
...
raise a ValueError for dangling delimiters (the delimiter itself is returned).
2004-11-01 03:52:43 +00:00
Tim Peters
4590c00e89
test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME.
2004-11-01 02:40:52 +00:00
Johannes Gijsbers
ef5ffc4765
Bug #1048941 : shutil.rmtree error handling was always broken
...
Rewrite rmtree again, this time without os.walk(). Error handling had been
broken since Python 2.3, and the os.walk() version inherited this.
2004-10-31 12:05:31 +00:00
Tim Peters
ead8b7ab30
SF 1055820: weakref callback vs gc vs threads
...
In cyclic gc, clear weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.
This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced. I'll backport to 2.3.
2004-10-30 23:09:22 +00:00
Armin Rigo
89a39461bf
Wrote down the invariants of some common objects whose structure is
...
exposed in header files. Fixed a few comments in these headers.
As we might have expected, writing down invariants systematically exposed a
(minor) bug. In this case, function objects have a writeable func_code
attribute, which could be set to code objects with the wrong number of
free variables. Calling the resulting function segfaulted the interpreter.
Added a corresponding test.
2004-10-28 16:32:00 +00:00
Walter Dörwald
063e1e846d
Trigger a few error cases in Modules/_codecsmodule.c.
2004-10-28 13:04:26 +00:00
Brett Cannon
14adbe77b5
Fix bug of implementation of algorithm for calculating the date from year, week
...
of the year, and day of the week. Was not taking into consideration properly
the issue of when %U is used for the week of the year but the year starts on
Monday.
Closes bug #1045381 again.
2004-10-28 04:49:21 +00:00
Mark Hammond
79d9bfa28f
Fix [1055540 ] bdist_wininst broken for pure Python distributions
2004-10-27 21:54:33 +00:00
Raymond Hettinger
17931de110
SF patch #1053375 .
...
(Contributed by Facundo Batista.)
Code simplification by eliminating the unnecessary and error-prone
convolutions for the previously weird sign convention in _WorkRep().
Makes the code more understandable, more reliable, and a bit faster.
2004-10-27 06:21:46 +00:00
Hye-Shik Chang
7afa64e260
Add a comment explains why we should modify mtime here.
2004-10-27 03:12:05 +00:00
Tim Peters
1816d79bac
Removed newly redundant embedded import.
2004-10-27 02:44:10 +00:00
Tim Peters
10d59f3fa1
Whitespace normalization.
2004-10-27 02:43:25 +00:00
Tim Peters
f1af9c0896
Paper over bug 1054615 by passing sane values to os.utime().
...
The underlying bug still exists, but also existed in 2.3.4:
import.c's load_source_module() returns NULL if
PyOS_GetLastModificationTime() returns -1, but
PyOS_GetLastModificationTime() doesn't set any exception when it returns
-1, and neither does load_source_module() when it gets back -1. This
leads to "SystemError: NULL result without error in PyObject_Call"
on an import that fails in this way.
2004-10-27 02:33:15 +00:00
Greg Ward
48aa84b24d
Update optparse module and test suite to Optik 1.5a2.
2004-10-27 02:20:04 +00:00
Facundo Batista
99b5548298
Very few little improvements.
2004-10-26 23:38:46 +00:00
Just van Rossum
fc93e17598
- Added tests for the string load/dump function.
...
- Added a chunk of plist data as generated by Cocoa's NSDictionary and
verify we output the same (including formatting)
- Changed the "literal" plist code to match the raw test data
2004-10-26 11:02:08 +00:00
Just van Rossum
1f74ef0fa3
Made <data> output match Apple's exactly. To do that I had to add a custom
...
version of base64.encodestring() so I could control the line length of the
base64 output.
2004-10-26 10:30:55 +00:00
Just van Rossum
8b8decea21
also escape '>', to closer match Apple's plist output
2004-10-26 10:11:00 +00:00
Hye-Shik Chang
182ac85147
SF #737473 : Show up-to-date source code in tracebacks always.
...
And add an optional argument 'filename' to linecache.checkcache()
to enable checking caches per-file.
2004-10-26 09:16:42 +00:00
Raymond Hettinger
23109ef11e
SF bug #1053819 : Segfault in tuple_of_constants
...
Peepholer could be fooled into misidentifying a tuple_of_constants.
Added code to count consecutive occurrences of LOAD_CONST.
Use the count to weed out the misidentified cases.
Added a unittest.
2004-10-26 08:59:14 +00:00
Just van Rossum
368c0b22f8
Deprecating Dict class; going through a few hoops to get the warnings right.
2004-10-26 07:38:16 +00:00
Just van Rossum
7c9448755b
- Removed Date class. We don't really need it for b/w compatibility since
...
a) the functionality depended on PyXML before and b) hardly worked to
begin with.
- Instead, output and require upon input datetime.datetime objects.
2004-10-26 07:20:26 +00:00
Just van Rossum
c6fdd1b398
- added two more convenience functions: readPlistFromString() and
...
writePlistToString()
- use these two in the resource functions.
- Tweaked module doc string.
2004-10-26 06:50:50 +00:00
Raymond Hettinger
561fbf138d
SF bug #1054139 : serious string hashing error in 2.4b1
...
_PyString_Resize() readied strings for mutation but did not invalidate
the cached hash value.
2004-10-26 01:52:37 +00:00
Just van Rossum
15cf4f0100
Updated doc strings.
2004-10-25 16:10:53 +00:00
Just van Rossum
86ca902eed
Deprecate Plist class
2004-10-25 16:09:10 +00:00
Just van Rossum
10e52dbe28
Removed superfluous **kwargs constructor cruft: this class predates
...
the dict(**kwargs) feature.
2004-10-25 16:04:20 +00:00
Just van Rossum
95387a1895
Patch from Bob Ippolito, slighly edited:
...
[ 1052399 ] plistlib: add plst resource functionality, fix bugs
2004-10-25 15:10:42 +00:00
Tim Peters
8ceefc5a56
Whitespace normalization.
2004-10-25 03:19:41 +00:00
Tim Peters
16e3cf535b
format_paragraph_event(): Patch 961387 introduced a bug here, causing
...
the indentation of a comment block to be ignored when reformatting the
block, leading to overly long reformatted lines (too wide by an amount
equal to the indentation width). Looks like a typo in the original
patch, a 1-character repair.
2004-10-24 23:45:42 +00:00
Raymond Hettinger
2ef7e6c8f2
SF bug #1052503 : pdb runcall should accept keyword arguments
2004-10-24 00:32:24 +00:00
Raymond Hettinger
9047c8f73d
SF bug #1048870 : call arg of lambda not updating
2004-10-24 00:10:06 +00:00
Vinay Sajip
dccd4321a7
Fixed bug in handling of args in LogRecord.__init__.
2004-10-21 21:24:27 +00:00
Peter Astrand
c19ccc9f11
Removed test_close_fds, because it's too unreliable. We simply cannot
...
know that the newly-started Python process only has 3 filedescriptors
open. Fixes bug 1048808.
2004-10-21 19:28:34 +00:00
Andrew M. Kuchling
8bc462fcaf
[Patch #1043972 , for bug #1017553 ] filemode() returns an incorrect value for the mode 07111
2004-10-20 11:48:42 +00:00
Andrew M. Kuchling
d4f2552ef8
Add test case for bug #1017553
2004-10-20 11:47:01 +00:00
Fred Drake
910b282fbb
when only using half of the return value of os.path.split(), use
...
os.path.dirname() or os.path.basename() instead
2004-10-20 11:08:35 +00:00
Vinay Sajip
4ed315ae66
Changed handling of args in LogRecord.__init__.
2004-10-20 08:39:40 +00:00
Raymond Hettinger
06d9b1f30b
SF bug #902037 : relative on-disk SYSTEM id handling is incorrect
...
(Contributed by Bob Ippolito.)
backport candidate.
2004-10-20 08:21:19 +00:00
Raymond Hettinger
e54e726f0b
SF patch #1038388 : __main__ for whichdb.py
...
(Contributed by Oleg Broytmann.)
2004-10-20 07:17:16 +00:00
Raymond Hettinger
76e60d687d
SF bug #1048728 : Bug fixes and cleanup for decimal.py
...
(Contributed by Neal Norwitz. Reviewed by Facundo Bastista.)
2004-10-20 06:58:28 +00:00
Andrew M. Kuchling
8520b94750
Display helpful message; print repr() of return value so the whitespace is clearer
2004-10-19 19:36:09 +00:00
Andrew M. Kuchling
ccab001c3d
[Bug #1048816 ] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
2004-10-19 19:29:40 +00:00
Andrew M. Kuchling
a13ea5572a
Make magic coordinates more readable
2004-10-19 19:21:20 +00:00
Brett Cannon
8dc25ad6f2
Fix comments.
2004-10-18 01:47:46 +00:00
Brett Cannon
8abcc5d533
Add support for %U and %W to contribute to calculating the date when the year
...
and day of the week are specified.
Closes bug #1045381 .
2004-10-18 01:37:57 +00:00
Hye-Shik Chang
af5c7cff56
SF #1048865 : Fix a trivial typo that breaks StreamReader.readlines()
2004-10-17 23:51:21 +00:00
Raymond Hettinger
a9f6092904
Fix and test weak referencing of itertools.tee objects.
2004-10-17 16:40:14 +00:00
Raymond Hettinger
837dd93e3b
Fix docstring formatting of escape sequences.
2004-10-17 16:36:53 +00:00
Neal Norwitz
6627a96705
Invalid patterns to substitute and safe_substitute would crash since pattern
...
is not a local variable. Add a test case.
2004-10-17 16:27:18 +00:00
Neal Norwitz
1338946c7b
Use proper value for False
2004-10-17 16:24:25 +00:00
Neal Norwitz
2fa0b9d0bd
Remove unnecessary imports
2004-10-17 16:23:52 +00:00
Fredrik Lundh
15aaacc93e
return codes are available on all platforms, not just on Unix
2004-10-17 14:47:05 +00:00
Anthony Baxter
6a587c160b
release shenanigans
2004-10-15 08:07:21 +00:00
Fredrik Lundh
5e7d51b62c
make sure to check for this limit even if we're running with -O
2004-10-15 06:15:08 +00:00
Raymond Hettinger
4d03791632
SF bug #1046855 : httplib index out of range
2004-10-14 15:23:38 +00:00