diff options
author | Thomas Bechtold <thomasbechtold@jpberlin.de> | 2013-12-05 06:41:17 +0100 |
---|---|---|
committer | Thomas Bechtold <thomasbechtold@jpberlin.de> | 2013-12-05 06:41:17 +0100 |
commit | 3db2a5d4fcd2317e41d0102a207ff7d62b9a7558 (patch) | |
tree | 1f2207ffcb686ee528d329fbd9491e86f523db49 /example.py | |
parent | 625d6afa765b16bf2cb4da4121bc9ba98a591505 (diff) | |
download | python-requests-aws-3db2a5d4fcd2317e41d0102a207ff7d62b9a7558.tar.gz |
Make example ready for python3
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,11 +1,11 @@ #!/usr/bin/env python +from __future__ import print_function + import requests from awsauth import S3Auth -import StringIO - import gzip import urllib @@ -34,7 +34,7 @@ if __name__ == '__main__': r.raise_for_status() if r.content == confirmIt: - print 'Hala Madrid!' + print('Hala Madrid!') # Removing a file r = requests.delete(('http://%s.s3.amazonaws.com/%s' % (bucketName, o)), auth=S3Auth(ACCESS_KEY, SECRET_KEY)) |