diff --git a/src/zinc/storages/aws.py b/src/zinc/storages/aws.py index 7ee974e..516193d 100644 --- a/src/zinc/storages/aws.py +++ b/src/zinc/storages/aws.py @@ -67,7 +67,7 @@ def get(self, subpath): t = TemporaryFile(mode='w+b') cache_location = os.environ.get('ZINC_CACHE') if cache_location and exists(os.path.join(cache_location, keyname)): - t = file.open(os.path.join(cache_location,keyname), 'rb') + t = open(os.path.join(cache_location,keyname), 'rb') else: self._bucket.download_fileobj(keyname, t) if t.tell() == 0: