Merge "Simplify chained comparison"

This commit is contained in:
Jenkins 2016-04-07 07:41:10 +00:00 committed by Gerrit Code Review
commit 7fe6c2d07b

View File

@ -254,7 +254,6 @@ class DbQuotaDriver(object):
# Check the quotas and construct a list of the resources that # Check the quotas and construct a list of the resources that
# would be put over limit by the desired values # would be put over limit by the desired values
overs = [key for key, val in values.items() overs = [key for key, val in values.items() if 0 <= quotas[key] < val]
if quotas[key] >= 0 and quotas[key] < val]
if overs: if overs:
raise exceptions.OverQuota(overs=sorted(overs)) raise exceptions.OverQuota(overs=sorted(overs))