popbugs: use True/False for boolean variables instead of 0/1
Paul Wise
7 years ago
34 | 34 | #bugurl = 'file:///tmp/all.html' |
35 | 35 | outputfile = None |
36 | 36 | |
37 | debug = 0 | |
37 | debug = False | |
38 | 38 | try: |
39 | 39 | opts, args = getopt.getopt(sys.argv[1:], "dho:", |
40 | 40 | ["debug", "help","output="]) |
48 | 48 | elif o in ("-o", "--output"): |
49 | 49 | outputfile = a |
50 | 50 | elif o in ("-d", "--debug"): |
51 | debug = 1 | |
51 | debug = True | |
52 | 52 | |
53 | 53 | if len(args) >= 1: |
54 | 54 | popconfile = args[0] |
85 | 85 | if outputfile == None: |
86 | 86 | fd, outputfile = tempfile.mkstemp(suffix='.html') |
87 | 87 | output = os.fdopen(fd, 'w') |
88 | view = 1 | |
88 | view = True | |
89 | 89 | elif outputfile == '-': |
90 | 90 | output = sys.stdout |
91 | view = 0 | |
91 | view = False | |
92 | 92 | else: |
93 | 93 | output = open(outputfile, 'w') |
94 | view = 0 | |
94 | view = False | |
95 | 95 | |
96 | 96 | class Package: |
97 | 97 | def __init__(self, name, atime): |