From 785b9739958b1ed77a4e9948186af27c33094197 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 2 Feb 2013 19:46:59 +0100 Subject: [PATCH] botchk: Use open() instead of file(). --- scripts/supybot-botchk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/supybot-botchk b/scripts/supybot-botchk index e187d1242..ff9ed0908 100644 --- a/scripts/supybot-botchk +++ b/scripts/supybot-botchk @@ -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)