projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Manual 2to3 fixups.
[cumulus.git]
/
python
/
cumulus
/
store
/
s3.py
diff --git
a/python/cumulus/store/s3.py
b/python/cumulus/store/s3.py
index
7d8aaaf
..
ef40113
100644
(file)
--- a/
python/cumulus/store/s3.py
+++ b/
python/cumulus/store/s3.py
@@
-18,6
+18,8
@@
"""Amazon S3 storage backend. Uses a URL of the form s3://BUCKET/PATH/."""
"""Amazon S3 storage backend. Uses a URL of the form s3://BUCKET/PATH/."""
+from __future__ import division, print_function, unicode_literals
+
import os, sys, tempfile
import boto
from boto.exception import S3ResponseError
import os, sys, tempfile
import boto
from boto.exception import S3ResponseError
@@
-33,7
+35,7
@@
def throw_notfound(method):
return method(*args, **kwargs)
except S3ResponseError as e:
if e.status == 404:
return method(*args, **kwargs)
except S3ResponseError as e:
if e.status == 404:
- print
"Got a 404:", e
+ print
("Got a 404:", e)
raise cumulus.store.NotFoundError(e)
else:
raise
raise cumulus.store.NotFoundError(e)
else:
raise