From 81547e1bc5133d94a46615a82df262d096c8fada Mon Sep 17 00:00:00 2001 From: zmsmith Date: Tue, 19 Feb 2013 19:38:33 -0500 Subject: [PATCH] PEP8 --- moto/dynamodb/models.py | 5 +++-- moto/dynamodb/responses.py | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/moto/dynamodb/models.py b/moto/dynamodb/models.py index bb7b9d49a..46199e625 100644 --- a/moto/dynamodb/models.py +++ b/moto/dynamodb/models.py @@ -1,11 +1,12 @@ from moto.core import BaseBackend + class DynamoDBBackend(BaseBackend): - + def __init__(self): self.tables = {} def create_table(self, name): self.tables[name] = None -dynamodb_backend = DynamoDBBackend() \ No newline at end of file +dynamodb_backend = DynamoDBBackend() diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py index 980312519..9fc616741 100644 --- a/moto/dynamodb/responses.py +++ b/moto/dynamodb/responses.py @@ -2,8 +2,9 @@ import re import json from .models import dynamodb_backend + class DynamoHandler(object): - + def __init__(self, uri, body, headers): self.uri = uri self.body = body @@ -26,7 +27,7 @@ class DynamoHandler(object): tables = dynamodb_backend.tables.keys() response = {"TableNames": tables} return json.dumps(response) - + def handler(uri, body, headers): - return DynamoHandler(uri, body, headers).dispatch() \ No newline at end of file + return DynamoHandler(uri, body, headers).dispatch()