diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | routes/mapper.py | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index e7788ce..2f9b500 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ matrix: install: - python setup.py develop - pip install webob webtest coverage -script: nosetests +script: python -bb $(which nosetests) diff --git a/routes/mapper.py b/routes/mapper.py index 43372d7..06f09f2 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -789,7 +789,11 @@ class Mapper(SubMapperParent): six.text_type(kargs).encode('utf8') if self.urlcache is not None: - cache_key_script_name = '%s:%s' % (script_name, cache_key) + if six.PY3: + cache_key_script_name = b':'.join((script_name.encode('utf-8'), + cache_key)) + else: + cache_key_script_name = '%s:%s' % (script_name, cache_key) # Check the url cache to see if it exists, use it if it does val = self.urlcache.get(cache_key_script_name, self) |