-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright 2010 Peter Palfrader
#
(w1,w2) = w
if w2 == 0:
w1 -= 1
- if (host,db) in ( ('main'), ):
- w2 = 0xFE
- else:
- w2 = 0xFF
+ w2 = 0xFF
else:
w2 -= 1
for p in problems_seq:
- print p
+ print(p)
if options.verbose:
for p in notices_seq:
- print p
+ print(p)
if options.expire:
for f in global_expires:
- if options.verbose: print "Expiring %s"%(f)
+ if options.verbose: print("Expiring %s" % f)
if not options.dry_run: os.unlink(f)
if len(problems_seq) > 0:
sys.exit(1)
if not options.expire or options.verbose:
- print "OK: no problems detected"
+ print("OK: no problems detected")
sys.exit(0)
# vim:set et: