Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit 9b795d4

Browse files
author
Andrew Fitz Gibbon
committed
Add more messaging around version requirements. Also cleaned up a bit.
1 parent dd40006 commit 9b795d4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ referred to as Boto).
55

66
## Requirements
77

8-
This sample project depends on boto, the AWS SDK for Python. You can install it
9-
with:
8+
This sample project depends on Boto, the AWS SDK for Python, and requires
9+
Python 2.6 or 2.7. You can install Boto using pip:
1010

1111
pip install boto
1212

s3_sample.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
s3 = boto.connect_s3()
2121

2222
# Create a new bucket.
23-
bucket_name = "python-sdk-sample-" + str(uuid.uuid4())
23+
bucket_name = "python-sdk-sample-%s" % uuid.uuid4()
2424
print "Creating new bucket with name: " + bucket_name
2525
bucket = s3.create_bucket(bucket_name)
2626

@@ -33,8 +33,10 @@
3333
k.set_contents_from_string('This is a test of S3. Hello World!')
3434

3535
# Fetch the key to show that we stored something.
36-
print "Downloading the object we just uploaded:\n"
37-
print k.get_contents_as_string() + "\n"
36+
print "Downloading the object we just uploaded:"
37+
print
38+
print k.get_contents_as_string()
39+
print
3840

3941
print "Now delete the same object"
4042
k.delete()

0 commit comments

Comments
 (0)