[hotssh] Bug 590119 - Unconditially import webbrowser for url opening
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hotssh] Bug 590119 - Unconditially import webbrowser for url opening
- Date: Wed, 29 Jul 2009 18:31:17 +0000 (UTC)
commit 063b5356efb6abb29831c6af030cb87000396fcb
Author: Colin Walters <walters verbum org>
Date: Wed Jul 29 14:30:23 2009 -0400
Bug 590119 - Unconditially import webbrowser for url opening
This makes us depend on a recent version of Python, but that's
not a big deal since hotssh is targeted for Linux.
hotssh/hotvte/vteterm.py | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/hotssh/hotvte/vteterm.py b/hotssh/hotvte/vteterm.py
index 4894188..01d8e8c 100644
--- a/hotssh/hotvte/vteterm.py
+++ b/hotssh/hotvte/vteterm.py
@@ -194,16 +194,7 @@ class VteTerminalWidget(gtk.VBox):
return []
def __open_url(self, url):
- # Older webbrowser.py didn't check gconf
- from hotwire.sysdep import is_windows
- if sys.version_info[0] == 2 and sys.version_info[1] < 6 and (not is_windows()):
- try:
- import hotwire.externals.webbrowser as webbrowser
- except ImportError, e:
- _logger.warn("Couldn't import hotwire.externals.webbrowser", exc_info=True)
- import webbrowser
- else:
- import webbrowser
+ import webbrowser
webbrowser.open(url)
def __on_selection_changed(self, *args):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]