Remove some useless code

This commit is contained in:
Andrew Resch 2009-05-10 19:11:06 +00:00
parent 384eee2744
commit 2d2f8f7700
2 changed files with 2 additions and 12 deletions

View File

@ -200,15 +200,8 @@ def open_url_in_browser(url):
:param url: the url to open :param url: the url to open
""" """
import threading
import webbrowser import webbrowser
class BrowserThread(threading.Thread): webbrowser.open(url)
def __init__(self, url):
threading.Thread.__init__(self)
self.url = url
def run(self):
webbrowser.open(self.url)
BrowserThread(url).start()
## Formatting text functions ## Formatting text functions

View File

@ -42,11 +42,8 @@ class AboutDialog:
self.about.set_name("Deluge") self.about.set_name("Deluge")
self.about.set_program_name("Deluge") self.about.set_program_name("Deluge")
# Get the version and revision numbers
rev = deluge.common.get_revision()
version = deluge.common.get_version() 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_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_comments("A peer-to-peer file sharing program\nutilizing the Bittorrent protocol.")
self.about.set_version(version) self.about.set_version(version)