From c234d683d1ddde6dc64db849b6709487eef9d498 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 7 Feb 2013 15:37:20 +0100 Subject: [PATCH] scripts/supybot-botchk: Open pidfile in append mode because 'x' is not supported on Python 2 --- scripts/supybot-botchk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/supybot-botchk b/scripts/supybot-botchk index 31fa7ed8a..8d59e8068 100644 --- a/scripts/supybot-botchk +++ b/scripts/supybot-botchk @@ -97,8 +97,7 @@ if __name__ == '__main__': parser.error('No conffile given.') os.chdir(options.botdir) - if not os.path.exists(options.pidfile): - open(options.pidfile, 'x').close() + open(options.pidfile, 'a').close() pid = None try: