Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some formatting to make tests pass. #28

Merged
merged 1 commit into from
May 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions appengine/memcache/guestbook/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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')


Expand Down Expand Up @@ -108,7 +110,7 @@ def render_greetings(self, guestbook_name):
else:
output.write('An anonymous person wrote:')
output.write('<blockquote>{}</blockquote>'.format(
cgi.escape(greeting.content)))
cgi.escape(greeting.content)))
return output.getvalue()
# [END query_datastore]

Expand Down
2 changes: 1 addition & 1 deletion storage/compose_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"""

import argparse
import sys
import json
import sys

from apiclient import discovery
from oauth2client.client import GoogleCredentials
Expand Down
2 changes: 1 addition & 1 deletion storage/list_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"""

import argparse
import sys
import json
import sys

from apiclient import discovery
from oauth2client.client import GoogleCredentials
Expand Down