From: Evan Broder Date: Sun, 13 Jul 2008 18:42:53 +0000 (+0000) Subject: Routes components are Unicode strings, so fix the URL universalizer X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=053a3d722e936121e9b724575f00a0886efa52ea;p=bluechips.git Routes components are Unicode strings, so fix the URL universalizer --- diff --git a/bluechips/lib/base.py b/bluechips/lib/base.py index 260943f..f561cec 100644 --- a/bluechips/lib/base.py +++ b/bluechips/lib/base.py @@ -27,7 +27,7 @@ class BaseController(WSGIController): environ['PATH_INFO'] = environ['PATH_INFO'][:-5] raise HTTPMovedPermanently(construct_url(environ)) if not environ['PATH_INFO'].endswith('/') and \ - environ['pylons.routes_dict']['action'] is 'index': + environ['pylons.routes_dict']['action'] == 'index': environ['PATH_INFO'] += '/' raise HTTPMovedPermanently(construct_url(environ)) try: