diff options
author | Richard Lowe <richlowe@richlowe.net> | 2009-12-10 15:08:34 -0800 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2009-12-10 15:08:34 -0800 |
commit | e7aca7349385967a98ed221ad54db99998d477e8 (patch) | |
tree | 144c418fa631a69986081dd758c447046d9696c8 /usr/src/tools/scripts/cddlchk.py | |
parent | 95fddab55b9e310853e6cd5cd514291ae1c9016f (diff) | |
download | illumos-joyent-e7aca7349385967a98ed221ad54db99998d477e8.tar.gz |
6880444 python code run from mercurial should be built with same python version
Diffstat (limited to 'usr/src/tools/scripts/cddlchk.py')
-rw-r--r-- | usr/src/tools/scripts/cddlchk.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr/src/tools/scripts/cddlchk.py b/usr/src/tools/scripts/cddlchk.py index 2450018976..72bae26cca 100644 --- a/usr/src/tools/scripts/cddlchk.py +++ b/usr/src/tools/scripts/cddlchk.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/python2.4 # # CDDL HEADER START # @@ -21,11 +21,9 @@ # # -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# # # Check for valid CDDL blocks in source files. @@ -78,7 +76,7 @@ class ExceptionList(object): def __contains__(self, elt): return self.match(elt) - + def usage(): progname = os.path.split(sys.argv[0])[1] sys.stderr.write('''Usage: %s [-av] [-x exceptions] paths... @@ -111,7 +109,7 @@ def walker(opts, dirname, fnames): else: if path in opts['exclude']: fnames.remove(f) - + def walkpath(path, opts): if os.path.isdir(path): os.path.walk(path, walker, opts) @@ -140,7 +138,7 @@ def main(args): options['verbose'] = True elif opt == '-x': options['exclude'].load(arg) - + for path in args: walkpath(path, options) |