Merge pull request #860 from BuhtigithuB/pep8-newcron-py
Improve PEP8 gluon/newcron.py
This commit is contained in:
+2
-1
@@ -47,7 +47,7 @@ def absolute_path_link(path):
|
|||||||
|
|
||||||
|
|
||||||
def stopcron():
|
def stopcron():
|
||||||
"Graceful shutdown of cron"
|
"""Graceful shutdown of cron"""
|
||||||
global _cron_stopping
|
global _cron_stopping
|
||||||
_cron_stopping = True
|
_cron_stopping = True
|
||||||
while _cron_subprocs:
|
while _cron_subprocs:
|
||||||
@@ -59,6 +59,7 @@ def stopcron():
|
|||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
|
|
||||||
class extcron(threading.Thread):
|
class extcron(threading.Thread):
|
||||||
|
|
||||||
def __init__(self, applications_parent, apps=None):
|
def __init__(self, applications_parent, apps=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user