Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Whitespace fixes to satisfy flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pendleton <apendleton@sunlightfoundation.com>
  • Loading branch information
apendleton committed Mar 11, 2015
1 parent 8692827 commit 49d19b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions avocado/core/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,13 @@ def load_fixture(name, using=DEFAULT_DB_ALIAS):

with transaction.commit_manually(using):
for obj in objects:
if (hasattr(router, "allow_migrate") and router.allow_migrate(using, obj.object.__class__)) or \
(hasattr(router, "allow_syncdb") and router.allow_syncdb(using, obj.object.__class__)):
if (
hasattr(router, "allow_migrate") and
router.allow_migrate(using, obj.object.__class__)
) or (
hasattr(router, "allow_syncdb") and
router.allow_syncdb(using, obj.object.__class__)
):
try:
obj.save(using=using)
except (DatabaseError, IntegrityError), e:
Expand Down
2 changes: 1 addition & 1 deletion avocado/stats/kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def std_dev(values):
mean = sum(values) / float(len(values))

# Compute the square difference of all the values
square_differences = [(v - mean)**2 for v in values]
square_differences = [(v - mean) ** 2 for v in values]

return math.sqrt(sum(square_differences) / float(len(square_differences)))

Expand Down

0 comments on commit 49d19b2

Please sign in to comment.