From 1adb4e34635e6cc72b7b806782cb566a58beeb93 Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 19 Dec 2005 23:11:45 +0000 Subject: Handle non-strings (like ints) passed in --- paste/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/url.py') 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 += '/' -- cgit v1.2.1