Mercurial > piecrust2
diff piecrust/admin/pubutil.py @ 812:82509bce94ca
internal: PEP8 fixup for admin panel code.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 20 Dec 2016 22:20:18 -0800 |
parents | 5e91bc0e3b4d |
children |
line wrap: on
line diff
--- a/piecrust/admin/pubutil.py Mon Dec 19 22:31:30 2016 -0800 +++ b/piecrust/admin/pubutil.py Tue Dec 20 22:20:18 2016 -0800 @@ -30,9 +30,9 @@ # Make sure CTRL+C works correctly. logger.debug("Adding SIGINT callback for pipeline thread.") signal.signal( - signal.SIGINT, - lambda *args: _shutdown_server_and_raise_sigint( - state.app.debug)) + signal.SIGINT, + lambda *args: _shutdown_server_and_raise_sigint( + state.app.debug)) foodtruck_bp.record(record_pipeline) @@ -117,8 +117,8 @@ if pid: is_running = _pid_exists(pid) logger.debug( - "Process %d is %s" % - (pid, 'running' if is_running else 'not running')) + "Process %d is %s" % + (pid, 'running' if is_running else 'not running')) if not is_running: # Let's forget this PID file until it changes. pid = None @@ -135,8 +135,8 @@ # This means we saw the PID file get changed. if not is_pid_file_prehistoric: outstr = ( - 'event: message\n' - 'data: Publish started.\n\n') + 'event: message\n' + 'data: Publish started.\n\n') yield bytes(outstr, 'utf8') last_seek = 0