PEP8 cleanups, specially E501 line too long.

This commit is contained in:
Roberto Rosario
2015-07-22 18:21:37 -04:00
parent c275988c90
commit 4527563d89
118 changed files with 2839 additions and 756 deletions

View File

@@ -17,10 +17,11 @@ def task_check_expired_check_outs():
lock_id = 'task_expired_check_outs'
try:
logger.debug('trying to acquire lock: %s', lock_id)
lock = Lock.acquire_lock(name=lock_id, timeout=CHECKOUT_EXPIRATION_LOCK_EXPIRE)
lock = Lock.acquire_lock(
name=lock_id, timeout=CHECKOUT_EXPIRATION_LOCK_EXPIRE
)
logger.debug('acquired lock: %s', lock_id)
DocumentCheckout.objects.check_in_expired_check_outs()
lock.release()
except LockError:
logger.debug('unable to obtain lock')
pass