codestyle docstrings

This commit is contained in:
2017-04-11 12:48:19 +02:00
parent b26fbc2dc0
commit 38f67e2b83
3 changed files with 7 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ def configure():
pargs.conffile = os.path.join(startdir, pargs.conffile)
if pargs.logfile is not None and os.path.dirname(pargs.logfile) == "":
pargs.logfile = os.path.join(startdir, pargs.logfile)
# Prüfen ob als Daemon ausgeführt werden soll
global forked
pidfile = "/var/run/revpipyload.pid"

View File

@@ -192,6 +192,7 @@ class PipeLogwriter(Thread):
))
def __del__(self):
"""Close file handler."""
if self._fh is not None:
self._fh.close()
@@ -305,7 +306,7 @@ class RevPiPlc(Thread):
elif proginit.pargs.logfile is not None:
logfile = proginit.pargs.logfile
if not logfile is None:
if logfile is not None:
logfile = PipeLogwriter(logfile)
proginit.logger.debug("leave RevPiPlc._configureplw()")