From 3db2a5d4fcd2317e41d0102a207ff7d62b9a7558 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 5 Dec 2013 06:41:17 +0100 Subject: Make example ready for python3 --- example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example.py b/example.py index d37c53a..e9082d4 100644 --- a/example.py +++ b/example.py @@ -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)) -- cgit v1.2.1