Skip to content

Commit

Permalink
Merge pull request #28 from jeffmendoza/formatting
Browse files Browse the repository at this point in the history
Fix some formatting to make tests pass.
  • Loading branch information
Jonathan Wayne Parrott committed May 21, 2015
2 parents de2fb9c + 3d36f2e commit 584f950
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
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

0 comments on commit 584f950

Please sign in to comment.