From dee1cdb646cc03d6878bbd8d16c98b8a9c2501fc Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Fri, 3 Mar 2017 18:15:23 -0500 Subject: [PATCH] minor PEP 8 whitespace edits --- evennia/server/portal/portal.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/evennia/server/portal/portal.py b/evennia/server/portal/portal.py index 5de5d5bd8f..3a8fb5338f 100644 --- a/evennia/server/portal/portal.py +++ b/evennia/server/portal/portal.py @@ -37,9 +37,9 @@ if os.name == 'nt': # For Windows we need to handle pid files manually. PORTAL_PIDFILE = os.path.join(settings.GAME_DIR, "server", 'portal.pid') -#------------------------------------------------------------ +# ------------------------------------------------------------- # Evennia Portal settings -#------------------------------------------------------------ +# ------------------------------------------------------------- VERSION = get_evennia_version() @@ -76,6 +76,8 @@ AMP_ENABLED = AMP_HOST and AMP_PORT and AMP_INTERFACE # Maintenance function - this is called repeatedly by the portal. _IDLE_TIMEOUT = settings.IDLE_TIMEOUT + + def _portal_maintenance(): """ The maintenance function handles repeated checks and updates that @@ -94,12 +96,12 @@ def _portal_maintenance(): if _IDLE_TIMEOUT > 0: # only start the maintenance task if we care about idling. _maintenance_task = LoopingCall(_portal_maintenance) - _maintenance_task.start(60) # called every minute + _maintenance_task.start(60) # called every minute -#------------------------------------------------------------ +# ------------------------------------------------------------- # Portal Service object -#------------------------------------------------------------ +# ------------------------------------------------------------- class Portal(object): """ @@ -180,11 +182,11 @@ class Portal(object): self.shutdown_complete = True reactor.callLater(0, reactor.stop) -#------------------------------------------------------------ +# ------------------------------------------------------------- # # Start the Portal proxy server and add all active services # -#------------------------------------------------------------ +# ------------------------------------------------------------- # twistd requires us to define the variable 'application' so it knows # what to execute from.