mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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,
|
# 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user