- except Exception, e:
- print >> sys.stderr, "Error while loading ini file %s" %(
- configFilename)
- print >> sys.stderr, e
- print >> sys.stderr, __doc__
+ except Exception as e:
+ print("Error while loading ini file %s" %(
+ configFilename), file=sys.stderr)
+ print(e, file=sys.stderr)
+ print(__doc__, file=sys.stderr)