botchk: Use open() instead of file().

This commit is contained in:
Valentin Lorentz 2013-02-02 19:46:59 +01:00
parent 77f614be86
commit 785b973995

View File

@ -117,7 +117,7 @@ if __name__ == '__main__':
# First, we check if the pidfile is writable. If not, supybot will just exit, # First, we check if the pidfile is writable. If not, supybot will just exit,
# so we go ahead and refuse to start it. # so we go ahead and refuse to start it.
try: try:
file(options.pidfile, 'r+') open(options.pidfile, 'r+')
except EnvironmentError, e: except EnvironmentError, e:
debug('pidfile (%s) is not writable: %s' % (options.pidfile, e)) debug('pidfile (%s) is not writable: %s' % (options.pidfile, e))
sys.exit(-1) sys.exit(-1)