summaryrefslogtreecommitdiff
path: root/paste/url.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-19 23:11:45 +0000
committerianb <devnull@localhost>2005-12-19 23:11:45 +0000
commit1adb4e34635e6cc72b7b806782cb566a58beeb93 (patch)
tree7807eb8a58b365565f4439543f3d38a27d9a11ce /paste/url.py
parentfab647db8901f9cab089c1204a95f3d0dba9ae79 (diff)
downloadpaste-1adb4e34635e6cc72b7b806782cb566a58beeb93.tar.gz
Handle non-strings (like ints) passed in
Diffstat (limited to 'paste/url.py')
-rw-r--r--paste/url.py2
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 += '/'