diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-04-28 18:32:12 -0700 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2013-05-01 14:19:38 -0400 |
commit | de2e5aa462a9515ac228690b68b84af5974db1ea (patch) | |
tree | c79e0d5175d6b5b565d08580b59fafd33fe11feb /bin/swift-ring-builder | |
parent | d5e96e77474e1f48643b56be81497387fb163b54 (diff) | |
download | swift-de2e5aa462a9515ac228690b68b84af5974db1ea.tar.gz |
Update to flake8 instead of pep8.
Change-Id: I3d4a31111c3044da06611405ce80f208ef8a0ce3
Diffstat (limited to 'bin/swift-ring-builder')
-rwxr-xr-x | bin/swift-ring-builder | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/swift-ring-builder b/bin/swift-ring-builder index 8187c6d57..9ac6b3c2c 100755 --- a/bin/swift-ring-builder +++ b/bin/swift-ring-builder @@ -91,8 +91,8 @@ swift-ring-builder <builder_file> if d is not None)) zones = len(set((d['region'], d['zone']) for d in builder.devs if d is not None)) - dev_count = len([d for d in builder.devs - if d is not None]) + dev_count = len([dev for dev in builder.devs + if dev is not None]) balance = builder.get_balance() print '%d partitions, %.6f replicas, %d regions, %d zones, ' \ '%d devices, %.02f balance' % (builder.parts, builder.replicas, |