Codebase list debian-goodies / 6e18896
popbugs: use True/False for boolean variables instead of 0/1 Paul Wise 7 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3434 #bugurl = 'file:///tmp/all.html'
3535 outputfile = None
3636
37 debug = 0
37 debug = False
3838 try:
3939 opts, args = getopt.getopt(sys.argv[1:], "dho:",
4040 ["debug", "help","output="])
4848 elif o in ("-o", "--output"):
4949 outputfile = a
5050 elif o in ("-d", "--debug"):
51 debug = 1
51 debug = True
5252
5353 if len(args) >= 1:
5454 popconfile = args[0]
8585 if outputfile == None:
8686 fd, outputfile = tempfile.mkstemp(suffix='.html')
8787 output = os.fdopen(fd, 'w')
88 view = 1
88 view = True
8989 elif outputfile == '-':
9090 output = sys.stdout
91 view = 0
91 view = False
9292 else:
9393 output = open(outputfile, 'w')
94 view = 0
94 view = False
9595
9696 class Package:
9797 def __init__(self, name, atime):