diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 13:17:53 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 13:17:53 -0400 |
commit | 75d85896578c60313ff8e57cc94a0833a16a51a5 (patch) | |
tree | 0c3a338e65c305623b806fdd07e657b2fd782ebf /pecan/core.py | |
parent | e59d8bddcf7e742971576e94c07df54a2ad32ea7 (diff) | |
download | pecan-75d85896578c60313ff8e57cc94a0833a16a51a5.tar.gz |
Remove `basestring` references for PY3 support.
Diffstat (limited to 'pecan/core.py')
-rw-r--r-- | pecan/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pecan/core.py b/pecan/core.py index 620440b..8e90a62 100644 --- a/pecan/core.py +++ b/pecan/core.py @@ -203,7 +203,7 @@ class Pecan(object): extra_template_vars={}, force_canonical=True, guess_content_type_from_ext=True): - if isinstance(root, basestring): + if isinstance(root, six.string_types): root = self.__translate_root__(root) self.root = root @@ -315,7 +315,8 @@ class Pecan(object): valid_args = argspec[0][1:] def _decode(x): - return urllib.unquote_plus(x) if isinstance(x, basestring) else x + return urllib.unquote_plus(x) if isinstance(x, six.string_types) \ + else x remainder = [_decode(x) for x in remainder] |