url_str -> urlstr: urlstr used accross the codebase, more consistent

This commit is contained in:
Marc Jauvin 2018-01-25 18:01:43 -05:00
parent bb8bc7ea3c
commit 88ff0c0425
2 changed files with 4 additions and 4 deletions

View File

@ -106,10 +106,10 @@ class WebEngineAction(browsertab.AbstractAction):
# Qt < 5.8
tb = objreg.get('tabbed-browser', scope='window',
window=self._win_id)
url_str = self._tab.url().toString(QUrl.RemoveUserInfo)
urlstr = self._tab.url().toString(QUrl.RemoveUserInfo)
# The original URL becomes the path of a view-source: URL
# (without a host), but query/fragment should stay.
url = QUrl('view-source:' + url_str)
url = QUrl('view-source:' + urlstr)
tb.tabopen(url, background=False, related=True)

View File

@ -71,10 +71,10 @@ class WebKitAction(browsertab.AbstractAction):
new_tab = tb.tabopen(background=False, related=True)
# The original URL becomes the path of a view-source: URL
# (without a host), but query/fragment should stay.
url = QUrl('view-source:' + url_str)
url = QUrl('view-source:' + urlstr)
new_tab.set_html(highlighted, url)
url_str = self._tab.url().toString(QUrl.RemoveUserInfo)
urlstr = self._tab.url().toString(QUrl.RemoveUserInfo)
self._tab.dump_async(show_source_cb)