mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
botchk: Use open() instead of file().
This commit is contained in:
parent
77f614be86
commit
785b973995
@ -117,7 +117,7 @@ if __name__ == '__main__':
|
||||
# First, we check if the pidfile is writable. If not, supybot will just exit,
|
||||
# so we go ahead and refuse to start it.
|
||||
try:
|
||||
file(options.pidfile, 'r+')
|
||||
open(options.pidfile, 'r+')
|
||||
except EnvironmentError, e:
|
||||
debug('pidfile (%s) is not writable: %s' % (options.pidfile, e))
|
||||
sys.exit(-1)
|
||||
|
Loading…
Reference in New Issue
Block a user