diff options
author | Marko Kreen | 2009-02-13 11:57:58 +0000 |
---|---|---|
committer | Marko Kreen | 2009-02-13 13:20:52 +0000 |
commit | 5dd59cd49795fdd5c281938c9336c1dc188f5324 (patch) | |
tree | d6f8b0fc1a3ca7be4ae2c24a3f1c507efeb762d8 /scripts/catsql.py | |
parent | 38cd6baf484c0d9219f8bf3628da3e1acc100224 (diff) |
scripts/ update, mostly from 2.1-stable
Some docsrting updates also.
Dispatchers have not upgraded for cascading yet.
Diffstat (limited to 'scripts/catsql.py')
-rwxr-xr-x | scripts/catsql.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/catsql.py b/scripts/catsql.py index 94fbacd8..80005851 100755 --- a/scripts/catsql.py +++ b/scripts/catsql.py @@ -34,7 +34,7 @@ Note: import sys, os, re, getopt def usage(x): - print "usage: catsql [--ndoc] FILE [FILE ...]" + print("usage: catsql [--ndoc] FILE [FILE ...]") sys.exit(x) # NDoc specific changes @@ -65,7 +65,6 @@ def proc_func(f, ln): ln = fix_func(ln) pre_list = [ln] comm_list = [] - n_comm = 0 while 1: ln = f.readline() if not ln: @@ -109,8 +108,8 @@ def cat_file(fn): elif cmd == "q": # quit sys.exit(0) elif cmd == "cd": # chdir - dir = m.group(2).strip() - os.chdir(dir) + cd_dir = m.group(2).strip() + os.chdir(cd_dir) else: # skip all others pass else: @@ -126,7 +125,7 @@ def main(): try: opts, args = getopt.gnu_getopt(sys.argv[1:], 'h', ['ndoc']) except getopt.error, d: - print d + print(str(d)) usage(1) for o, v in opts: if o == "-h": |