| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
mislabeled.
(Using -c and then -e rearranges some comments, so I won't check that
in -- but it's a good test anyway.
Note that pindent is not perfect -- e.g. it doesn't know about
triple-quoted strings!)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem:
A Python program can be completed and reformatted using
Tools/scripts/pindent.py. Unfortunately there is no option for removal
of the generated "# end"-tags. Although a few Python commands or a
"grep -v '# end '" can do wonders here, there are two drawbacks:
- not everyone has grep/time to write a Python script
- it is not checked whether the "# end"-tags were used validly
Solution:
add extra option "-e" (eliminate) to pindent.py
|
|
|
|
| |
Typo noted by /F.
|
|
|
|
| |
Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
|
|
|
|
| |
gencodec.py - Create Python codecs from Unicode mapping files
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* In crlf.py and lfcr.py: regsub -> re
|
|
|
|
|
|
| |
* In logmerge.py: added '-r' flag to show the oldest checkin
first instead of the newest, and getopt.getopt was used
wrong.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
If the filename being complained about contains a space, enclose the
file-name in quotes.
The reason is simply that when I try and parse tabnanny's output, filenames
with spaces make it very difficult to determine where the filename stops
and the linenumber begins!
"""
Tim approves.
I slightly changed the patch (use 'in' instead of string.find()) and
arbitrarily bumped the __version__ variable up to 6.
|
|
|
|
|
| |
Don't rewrite the file in place.
(Reported by Andy Dustman.)
|
|
|
|
| |
main() when imported (in other words, it is not usable as a module).
|
|
|
|
|
|
|
|
| |
I should have waited overnight <wink/sigh>. Nothing wrong with the one I
sent, but I couldn't resist going on to add new -r1 / -r2 cmdline options
for recreating the original files from ndiff's output. That's attached, if
you're game! Us Windows guys don't usually have a sed sitting around
<wink>.
|
|
|
|
|
|
|
| |
Attached is a cleaned-up version of ndiff (added useful module
docstring, now echo'ed in case of cmd line mistake); added -q option
to suppress initial file identification lines; + other minor cleanups,
& a slightly faster match engine.
|
|
|
|
| |
killed. Discard the error in that case, but propogate it otherwise.
|
|
|
|
| |
offending files to be printed. Good for emacs `tabnanny.py *.py`
|
|
|
|
|
| |
BeOS headers live in various non-standard places;
luckily, there's an environment variable that lists them all.
|
|
|
|
|
|
|
|
|
| |
"""
the NEWS file of Python 1.5.2a2 inspired me to look at
Tools/scripts/untabify.py. I wonder why it accepts a -t argument
but ignores it. The following patch tries to make it somewhat useful
(i.e., to override the tabsize=8 setting). Is that agreeable?
"""
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
strategy to read from the end of the file.
|
|
|
|
| |
automatically.
|
|
|
|
| |
# it but can't remember what. Get rid of a comparison that breaks.
|
|
|
|
|
|
|
|
| |
.mirrorinfo. Fix by me to call string.lstrip(filename) to cope with a
bug in strop.strip() in Python 1.4. Additionally, I changed all print
statements that print filenames etc. to put them in backquotes so that
it will be more obvious when there's a funny character on one of them
(such as a space...).
|
|
|
|
| |
L.append(a,b,c,d) with the correct L.append((a,b,c,d)).
|
|
|
|
|
|
|
|
|
|
| |
The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last
line is both indented and lacks a newline:
if 1:
print 'oh fudge' # no newline here:
The attached version repairs that.
|
|
|
|
| |
also supports filenames with multiple spaces in their name :-)
|
|
|
|
|
|
|
|
|
|
| |
This patch must hold the world record for living in my inbox:
From: John Ehresman <jehresma@dsg.harvard.edu>
Date: Wed, 23 Aug 1995 16:07:11 -0400
He provided a fix for the version that comes with Python 1.3:
ftpmirror.py revision 1.1... And it was still relevant!
|
|
|
|
| |
the comments.
|
|
|
|
|
| |
This is handy for comparing plain-text documentation files,
since it displays intra-line differences.
|
|
|
|
| |
(Jack)
|
|
|
|
|
|
| |
Convert to re module; remove all references to regexp and regsub
Added support for the new texinfo @url{} and @email{} commands
|
| |
|
| |
|
| |
|
|
|
|
|
| |
sensitive to tab size. Uses a different strategy than tabpolice.py,
but has compatible usage.
|