Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--browser.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/browser.py b/browser.py
index 8b7b941..8a14831 100644
--- a/browser.py
+++ b/browser.py
@@ -178,13 +178,10 @@ class Browser(webkit.WebView):
def __init__(self):
webkit.WebView.__init__(self)
- #self.history = HistoryListener()
- #self.progress = ProgressListener()
-
def load_uri(self, uri):
- p_uri = urlparse.urlparse(uri)
- if p_uri.schema == '' and p_uri.netloc == '':
- return urlparse.urlparse(p_uri.path, 'http')
+ r = urlparse.urlparse(uri)
+ if r.schema == '' and r.netloc == '':
+ return urlparse.ParseResult('http', r.path, '', '', '', '').geturl()
return uri