Skip to content

Commit

Permalink
Merged minor fix to url() method from branch (error if uri is None)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Aug 24, 2000
1 parent f853ebb commit 146d970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CatalogAwareness.py
Expand Up @@ -161,8 +161,10 @@ def url(self, ftype=urllib.splittype, fhost=urllib.splithost):
__traceback_info__=(`uri`, `script_name`)
if script_name:
uri=filter(None, string.split(uri, script_name))[0]
if uri[0] != '/': uri = '/' + uri
uri=uri or '/'
if not uri:
uri = '/'
if uri[0] != '/':
uri = '/' + uri
return urllib.unquote(uri)

def summary(self, num=200):
Expand Down

0 comments on commit 146d970

Please sign in to comment.