PEP8 cleanup.
This commit is contained in:
commit
61ba30ad89
@ -118,7 +118,7 @@ pygments_style = 'sphinx'
|
|||||||
# A list of ignored prefixes for module index sorting.
|
# A list of ignored prefixes for module index sorting.
|
||||||
modindex_common_prefix = ['glance.']
|
modindex_common_prefix = ['glance.']
|
||||||
|
|
||||||
# -- Options for man page output -----------------------------------------------
|
# -- Options for man page output ----------------------------------------------
|
||||||
|
|
||||||
# Grouping the document tree for man pages.
|
# Grouping the document tree for man pages.
|
||||||
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
|
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
|
||||||
|
@ -117,6 +117,7 @@ def stub_out_s3_backend(stubs):
|
|||||||
|
|
||||||
class FakeSwiftAuth(object):
|
class FakeSwiftAuth(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class FakeS3Connection(object):
|
class FakeS3Connection(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -134,7 +135,7 @@ def stub_out_s3_backend(stubs):
|
|||||||
|
|
||||||
def chunk_it():
|
def chunk_it():
|
||||||
for i in xrange(0, len(cls.DATA), cls.CHUNK_SIZE):
|
for i in xrange(0, len(cls.DATA), cls.CHUNK_SIZE):
|
||||||
yield cls.DATA[i:i+cls.CHUNK_SIZE]
|
yield cls.DATA[i:i + cls.CHUNK_SIZE]
|
||||||
|
|
||||||
return chunk_it()
|
return chunk_it()
|
||||||
|
|
||||||
|
@ -106,7 +106,6 @@ class TestS3Backend(TestBackend):
|
|||||||
self.assertEqual(chunks, expected_returns)
|
self.assertEqual(chunks, expected_returns)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestSwiftBackend(TestBackend):
|
class TestSwiftBackend(TestBackend):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user