diff options
author | ianb <devnull@localhost> | 2005-12-19 23:11:45 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-12-19 23:11:45 +0000 |
commit | 1adb4e34635e6cc72b7b806782cb566a58beeb93 (patch) | |
tree | 7807eb8a58b365565f4439543f3d38a27d9a11ce /paste/url.py | |
parent | fab647db8901f9cab089c1204a95f3d0dba9ae79 (diff) | |
download | paste-1adb4e34635e6cc72b7b806782cb566a58beeb93.tar.gz |
Handle non-strings (like ints) passed in
Diffstat (limited to 'paste/url.py')
-rw-r--r-- | paste/url.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/url.py b/paste/url.py index eecbba9..e4bae0d 100644 --- a/paste/url.py +++ b/paste/url.py @@ -166,7 +166,7 @@ class URLResource(object): def addpath(self, *paths): u = self for path in paths: - path = path.lstrip('/') + path = str(path).lstrip('/') new_url = u.url if not new_url.endswith('/'): new_url += '/' |