Skip to content

Commit

Permalink
Issue aws#450
Browse files Browse the repository at this point in the history
  • Loading branch information
Atharva Chauthaiwale committed Aug 1, 2017
1 parent 0fd718e commit 546ce89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chalice/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import copy
import json
import hashlib
import re

from typing import Any, Dict # noqa

Expand Down Expand Up @@ -150,7 +151,7 @@ def _generate_function_events(self, app):
events = {}
for methods in app.routes.values():
for http_method, view in methods.items():
mod_view_name = filter(str.isalnum, view.view_name)
mod_view_name = re.sub(r'[^A-Za-z0-9]+', '', view.view_name)
key_name = ''.join([
mod_view_name, http_method.lower(),
hashlib.md5(
Expand Down

0 comments on commit 546ce89

Please sign in to comment.