From 285ca6d4f96ef01021cf5b5c8ec12b6ed9e56adf Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Mon, 30 Sep 2013 18:01:05 +0000 Subject: [PATCH] py-i2phosts-master: unify import --- bin/py-i2phosts-master | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/py-i2phosts-master b/bin/py-i2phosts-master index f0ae38a..3492332 100755 --- a/bin/py-i2phosts-master +++ b/bin/py-i2phosts-master @@ -13,9 +13,9 @@ import threading import daemon # workaround for python-daemon >= 1.6 try: - import daemon.pidlockfile + import daemon.pidlockfile as pidfile except ImportError: - import daemon.pidfile + import daemon.pidfile as pidfile class Thread(threading.Thread): @@ -147,7 +147,7 @@ else: if not args.debug and not args.verbose: # get pid object for daemon - pid = daemon.pidlockfile.TimeoutPIDLockFile(config['pid_file'], 10) + pid = pidfile.TimeoutPIDLockFile(config['pid_file'], 10) # create daemon context d = daemon.DaemonContext(pidfile=pid, umask=077) # write stderr to logfile # FIXME: and how we will deal with log rotation?