Permalink
Browse files

Fixed typos

  • Loading branch information...
1 parent 44b0e5f commit 605e5da1325b9198f592ccc92a2cdeb1d36d7581 @pborreli pborreli committed Apr 2, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 README.rst
  2. +4 −4 elephant.py
View
@@ -64,7 +64,7 @@ Reseeding ElasticSearch is super simple::
Indexing...
[#### ] 29/378
-Inpsiration
+Inspiration
-----------
Extracted out of the in-progress `blackbox <https://github.com/kennethreitz/blackbox>`_ project.
View
@@ -100,7 +100,7 @@ def mkdir_p(path):
def epoch(dt=None):
- """Returns the epoch value for the given datetime, defulting to now."""
+ """Returns the epoch value for the given datetime, defaulting to now."""
if not dt:
dt = datetime.utcnow()
@@ -126,7 +126,7 @@ def iter_search(self, query, **kwargs):
if query is None:
query = '*'
- # Pepare elastic search queries.
+ # Prepare elastic search queries.
params = {}
for (k, v) in kwargs.items():
params['es_{0}'.format(k)] = v
@@ -276,7 +276,7 @@ def seed():
@app.before_request
def require_apikey():
- """Blocks aunauthorized requests."""
+ """Blocks unauthorized requests."""
# TODO: Convert this to a decorator
if app.debug:
@@ -325,7 +325,7 @@ def post_collection(collection):
@app.route('/<collection>/<uuid>')
def get_record(collection, uuid):
- """Get a record from a given colection."""
+ """Get a record from a given collection."""
return jsonify(record=Collection(collection)[uuid].dict)
@app.route('/<collection>/<uuid>', methods=['POST'])

0 comments on commit 605e5da

Please sign in to comment.