From 2d2f8f770033468748d7aa35ce736885f1916cd2 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 10 May 2009 19:11:06 +0000 Subject: [PATCH] Remove some useless code --- deluge/common.py | 9 +-------- deluge/ui/gtkui/aboutdialog.py | 5 +---- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index 35f4689cf..e18c758d1 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -200,15 +200,8 @@ def open_url_in_browser(url): :param url: the url to open """ - import threading import webbrowser - class BrowserThread(threading.Thread): - def __init__(self, url): - threading.Thread.__init__(self) - self.url = url - def run(self): - webbrowser.open(self.url) - BrowserThread(url).start() + webbrowser.open(url) ## Formatting text functions diff --git a/deluge/ui/gtkui/aboutdialog.py b/deluge/ui/gtkui/aboutdialog.py index 0f3cf71d0..545bcb1dc 100644 --- a/deluge/ui/gtkui/aboutdialog.py +++ b/deluge/ui/gtkui/aboutdialog.py @@ -42,11 +42,8 @@ class AboutDialog: self.about.set_name("Deluge") self.about.set_program_name("Deluge") - # Get the version and revision numbers - rev = deluge.common.get_revision() version = deluge.common.get_version() - if rev != "": - version = version + "r" + rev + self.about.set_copyright(u'Copyright \u00A9 2007-2009 Andrew Resch') self.about.set_comments("A peer-to-peer file sharing program\nutilizing the Bittorrent protocol.") self.about.set_version(version)