From d647031beeceb8dbdb0c825e3a368dff78998d28 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 25 Dec 2007 23:45:55 +0000 Subject: [PATCH] tweak new version --- src/interface.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index 0f0285840..8e32a7e96 100644 --- a/src/interface.py +++ b/src/interface.py @@ -1066,7 +1066,7 @@ window, please enter your password")) def new_release_check(self): import socket - import urllib2 + import urllib timeout = 5 socket.setdefaulttimeout(timeout) try: @@ -1074,8 +1074,7 @@ window, please enter your password")) except: pass try: - req = urllib2.Request("http://download.deluge-torrent.org/version") - new_release = urllib2.urlopen(req).read().strip() + new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip() except IOError: print "Network error while trying to check for a newer version of \ Deluge"