diff --git a/appengine/memcache/guestbook/main.py b/appengine/memcache/guestbook/main.py index e9c289020bf2..2ad141afaf10 100644 --- a/appengine/memcache/guestbook/main.py +++ b/appengine/memcache/guestbook/main.py @@ -13,15 +13,17 @@ # limitations under the License. # [START all] + import cgi import cStringIO import logging import urllib -import webapp2 -from google.appengine.ext import ndb from google.appengine.api import memcache from google.appengine.api import users +from google.appengine.ext import ndb + +import webapp2 class Greeting(ndb.Model): @@ -32,7 +34,7 @@ class Greeting(ndb.Model): def guestbook_key(guestbook_name=None): - """Constructs a Datastore key for a Guestbook entity with guestbook_name.""" + """Constructs a Datastore key for a Guestbook entity with guestbook_name""" return ndb.Key('Guestbook', guestbook_name or 'default_guestbook') @@ -108,7 +110,7 @@ def render_greetings(self, guestbook_name): else: output.write('An anonymous person wrote:') output.write('
{}'.format( - cgi.escape(greeting.content))) + cgi.escape(greeting.content))) return output.getvalue() # [END query_datastore] diff --git a/storage/compose_objects.py b/storage/compose_objects.py index 74e0dec19683..9ede81caf1a1 100644 --- a/storage/compose_objects.py +++ b/storage/compose_objects.py @@ -38,8 +38,8 @@ """ import argparse -import sys import json +import sys from apiclient import discovery from oauth2client.client import GoogleCredentials diff --git a/storage/list_objects.py b/storage/list_objects.py index 3ec60e4bfdeb..8a00b11ff271 100644 --- a/storage/list_objects.py +++ b/storage/list_objects.py @@ -30,8 +30,8 @@ """ import argparse -import sys import json +import sys from apiclient import discovery from oauth2client.client import GoogleCredentials