Skip to content

Commit

Permalink
Merge pull request #601 from tseaver/fix-new_pep8_errors
Browse files Browse the repository at this point in the history
Fix errors under pep8 1.6.1.
  • Loading branch information
tseaver committed Feb 9, 2015
2 parents b616203 + f32a2a0 commit 6de4110
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gcloud/datastore/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
# Don't worry though. You don't need to do anything, just keep hitting enter...

# Let's start by importing the demo module and initializing our connection.
from gcloud import datastore
from gcloud.datastore import demo

demo.initialize()

# Let's import the package containing our helper classes:
from gcloud import datastore

# Let's create a new entity of type "Thing" and name it 'Toy':
key = datastore.Key('Thing')
Expand Down
4 changes: 2 additions & 2 deletions gcloud/datastore/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
The non-private functions are part of the API.
"""

__all__ = ('entity_from_protobuf', 'key_from_protobuf')

import calendar
import datetime

Expand All @@ -30,6 +28,8 @@
from gcloud.datastore.entity import Entity
from gcloud.datastore.key import Key

__all__ = ('entity_from_protobuf', 'key_from_protobuf')

INT_VALUE_CHECKER = Int64ValueChecker()


Expand Down
4 changes: 3 additions & 1 deletion gcloud/storage/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
# Don't worry though. You don't need to do anything, just keep hitting enter...

# Let's start by importing the demo module and getting a connection:
import time

from gcloud.storage import demo

connection = demo.get_connection()

# OK, now let's look at all of the buckets...
print(connection.get_all_buckets()) # This might take a second...

# Now let's create a new bucket...
import time
bucket_name = ("bucket-%s" % time.time()).replace(".", "") # Get rid of dots.
print(bucket_name)
bucket = connection.create_bucket(bucket_name)
Expand Down

0 comments on commit 6de4110

Please sign in to comment.