Skip to content

Commit

Permalink
fixed bug, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dom-at-fugue committed Oct 29, 2015
1 parent 2af1409 commit 5a25b9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emulambda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def emit_to_function(verbose, stream, func):
print(
"\nObject %i %s" % (i, line.rstrip()[:65] + ('...' if len(line) > 65 else ''))) if verbose else None
i += 1
print(str(func(json.loads(line), None)))
func(json.loads(line), None)
except ValueError as e:
print("There was a problem parsing your JSON event.")
print(e.message)
Expand Down
2 changes: 1 addition & 1 deletion example/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ def very_inefficient(recursion, accumulator):

def example_handler(event, context):
result = very_inefficient(512, '')
return event['key1']#echo first key value
return event['key1'] # echo first key value
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clear; nosetests --with-coverage --cover-package emulambda

0 comments on commit 5a25b9b

Please sign in to comment.