Fix http.py to initial

Change-Id: Ife9d53b316839a6c8145b68c9f0cd568cbee7afd
This commit is contained in:
Ekaterina Fedorova 2013-08-12 13:52:54 +04:00
parent 5dbdc71732
commit eb5a86baff
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class HTTPClient(object):
# Read body into string if it isn't obviously image data
if resp.getheader('content-type', None) != 'application/octet-stream':
body_str = ''.join([chunk for piece in body_iter])
body_str = ''.join([chunk for chunk in body_iter])
self.log_http_response(resp, body_str)
body_iter = StringIO.StringIO(body_str)
else:

View File

@ -52,7 +52,7 @@ commands = flake8
[flake8]
# H301 one import per line
# H302 import only modules
ignore = H301,H302,F401
ignore = H301,H302,F401,F812
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools