def __init__(self, path, body, headers):
        self._path = path
        self._body = body
        self._actual_read = 0
        self._content_length = None
        self._actual_md5 = None
        self._expected_etag = headers.get('etag')

        if ('x-object-manifest' not in headers
                and 'x-static-large-object' not in headers):
            self._actual_md5 = md5()

        if 'content-length' in headers:
            try:
                self._content_length = int(headers.get('content-length'))
            except __HOLE__:
                raise SwiftError('content-length header must be an integer')
dataset/ETHPy150Open openstack/python-swiftclient/swiftclient/service.py/_SwiftReader.__init__