Merge branch 'ajtack-master' into rewrite-snake-case-function

This commit is contained in:
Jeffrey Linwood
2017-10-21 17:57:01 -05:00

5
app.py
View File

@@ -14,7 +14,10 @@ from inflection import underscore
# Convert keys to snake_case to conform with the twilio-python api definition contract
def snake_case_keys(somedict):
return dict(map(lambda key, value: (underscore(key), value), somedict.items()))
snake_case_dict = {}
for key, value in somedict.items():
snake_case_dict[underscore(key)] = value
return snake_case_dict
app = Flask(__name__)
fake = Factory.create()