Permalink
Browse files

bugfixes

  • Loading branch information...
1 parent 5305760 commit 8dd51c59c72e8e6a113dd286abbc862e6a53ceba @puzzlet committed Sep 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 werkzeug/routing.py
View
@@ -818,7 +818,7 @@ def __repr__(self):
tmp.append(data)
return '<%s %r%s -> %s>' % (
self.__class__.__name__,
- (''.join(tmp).encode(charset)).lstrip('|'),
+ (''.join(tmp)).lstrip('|'),
self.methods is not None and ' (%s)' % \
', '.join(self.methods) or '',
self.endpoint
@@ -1394,7 +1394,7 @@ def match(self, path=None, method=None, return_rule=False,
path + '/', query_args))
except RequestAliasRedirect as e:
raise RequestRedirect(self.make_alias_redirect_url(
- path, rule.endpoint, e.matched_values, method, query_args))
+ path_, rule.endpoint, e.matched_values, method, query_args))
if rv is None:
continue
if rule.methods is not None and method not in rule.methods:

0 comments on commit 8dd51c5

Please sign in to comment.