Serhiy Storchaka
afbb7a371f
bpo-22831: Use "with" to avoid possible fd leaks in tools (part 1). (GH-10926)
2019-03-30 08:32:18 +02:00
R David Murray
44b548dda8
#27364 : fix "incorrect" uses of escape character in the stdlib.
...
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
2016-09-08 13:59:53 -04:00
Terry Jan Reedy
a05e7f6743
Issue #25505 : Remove unused buggy method.
2015-10-30 19:25:34 -04:00
Benjamin Peterson
90f5ba538b
convert shebang lines: python -> python3
2010-03-11 22:53:45 +00:00
Georg Brandl
8efadf5d66
Ran 2to3 over scripts directory.
2008-05-16 15:23:30 +00:00
Collin Winter
6afaeb757a
Convert print statements to function calls in Tools/.
2007-08-03 17:06:41 +00:00
Guido van Rossum
b940e113bf
SF patch 1631942 by Collin Winter:
...
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
2007-01-10 16:19:56 +00:00
Georg Brandl
66a796e5ab
Patch #1601678 : move intern() to sys.intern().
2006-12-19 20:50:34 +00:00
Georg Brandl
7cae87ca7b
Patch #1550800 : make exec a function.
2006-09-06 06:51:57 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Andrew M. Kuchling
ac6df95d07
Fix use of 'file' as a variable name.
...
(I've tested the fixes, but please proofread anyway.)
2003-05-13 18:14:25 +00:00
Guido van Rossum
a0ca3d611e
- Reverse the meaning of the -m option: warnings about multiple /
...
operators per line or statement are now on by default, and -m turns
these warnings off.
- Change the way multiple / operators are reported; a regular
recommendation is always emitted after the warning.
- Report ambiguous warnings (both int|long and float|complex used for
the same operator).
- Update the doc string again to clarify all this and describe the
possible messages more precisely.
2001-09-04 16:22:01 +00:00
Tim Peters
83e7ccc9fd
Whitespace normalization.
2001-09-04 06:37:28 +00:00
Guido van Rossum
1832de4bc0
PEP 238 documented -Qwarn as warning only for classic int or long
...
division, and this makes sense. Add -Qwarnall to warn for all
classic divisions, as required by the fixdiv.py tool.
2001-09-04 03:51:09 +00:00
Guido van Rossum
61c345fa37
Rename the -D option to -Q, to avoid a Jython option name conflict.
2001-09-04 03:26:15 +00:00
Guido van Rossum
e7a95983b0
Implement what the docstring said: multiple slashes per line are
...
treated the same as single ones by default. Added -m option to issue
a warning for this case instead.
2001-09-02 14:11:30 +00:00
Guido van Rossum
13c51ecb8c
Added more text to the docstring, updated the way the exit status is
...
percolated out, and some general cleanup. The output is still the
same, except it now prints "Index: <file>" instead of "Processing:
<file>", so that the output can be used as input for patch (but only
the diff-style parts of it).
2001-09-02 04:49:36 +00:00
Guido van Rossum
822218b400
The beginnings of a script to help finding / operators that may need
...
to be change to //. The code is pretty gross so far, and I promise
I'll work on this more, but I have to go eat now! :-)
2001-09-01 21:55:58 +00:00