fix it in a better way

This commit is contained in:
Nikos Kouremenos 2005-06-30 23:24:39 +00:00
parent 64bfb68c22
commit 44379a87f0
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ class Interface:
pass
else:
if kind == 'url' and uri.startswith('www.'):
if kind == 'url' and not\
(uri.startswith('http://') or uri.startswith('http://')):
uri = 'http://' + uri
elif kind == 'mail' and not uri.startswith('mailto:'):
uri = 'mailto:' + uri