Skip to content

Commit

Permalink
Removes some superficial statements and makes a return explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
sirMackk committed May 21, 2016
1 parent 88968e6 commit 37260e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions diy_framework/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def add_route(self, path, handler):
:param handler: An async function that accepts a request
and returns a string or Response object.
"""
# logger.debug('Adding handler for: {0}'.format(path))
compiled_route = self.__class__.build_route_regexp(path)
if compiled_route not in self.routes:
self.routes[compiled_route] = handler
Expand Down Expand Up @@ -166,7 +165,6 @@ def named_groups(matchobj):

re_str = re.sub(r'{([a-zA-Z0-9_-]+)}', named_groups, regexp_str)
re_str = ''.join(('^', re_str, '$',))
# logger.debug('Compiling "{0}" regexp'.format(re_str))
return re.compile(re_str)

@classmethod
Expand All @@ -184,4 +182,4 @@ def match_path(cls, route, path):
try:
return match.groupdict()
except AttributeError:
return
return None

0 comments on commit 37260e8

Please sign in to comment.