Changeset 358
- Timestamp:
- 08/15/06 00:10:52 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r353 r358 32 32 33 33 34 class AnalyzerOption :34 class AnalyzerOptions : 35 35 """A class for use as the options parameter to PDLAnalyzer's constructor.""" 36 36 def __init__(self, debug=None, … … 45 45 class PDLAnalyzer : 46 46 """Class for PDL autodetection.""" 47 def __init__(self, filename, options=AnalyzerOption ()) :47 def __init__(self, filename, options=AnalyzerOptions()) : 48 48 """Initializes the PDL analyzer. 49 49 … … 190 190 if options.version : 191 191 print "%s" % version.__version__ 192 elif not (72 <= options.resolution <= 1200) : 193 sys.stderr.write("ERROR: the argument to the --resolution command line switch must be between 72 and 1200.\n") 194 sys.stderr.flush() 192 195 else : 193 196 if (not arguments) or ((not sys.stdin.isatty()) and ("-" not in arguments)) :