Linter fixes.
This commit is contained in:
parent
f6fe9023a4
commit
5935e93eb8
4 changed files with 36 additions and 36 deletions
|
@ -1,12 +1,14 @@
|
|||
from data.database import BUILD_PHASE
|
||||
from data import model
|
||||
from redis import RedisError
|
||||
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
from data.database import BUILD_PHASE
|
||||
from data import model
|
||||
from buildman.asyncutil import AsyncWrapper
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class StatusHandler(object):
|
||||
""" Context wrapper for writing status to build logs. """
|
||||
|
||||
|
@ -17,10 +19,10 @@ class StatusHandler(object):
|
|||
self._build_logs = build_logs
|
||||
|
||||
self._status = {
|
||||
'total_commands': 0,
|
||||
'current_command': None,
|
||||
'push_completion': 0.0,
|
||||
'pull_completion': 0.0,
|
||||
'total_commands': 0,
|
||||
'current_command': None,
|
||||
'push_completion': 0.0,
|
||||
'pull_completion': 0.0,
|
||||
}
|
||||
|
||||
# Write the initial status.
|
||||
|
|
Reference in a new issue