More version checking stuff

git-svn-id: http://comictagger.googlecode.com/svn/trunk@585 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-04-06 19:31:00 +00:00
parent 575a23c6bf
commit 9f4a4b0eb0

View File

@ -25,7 +25,6 @@ import re
import platform
import locale
import codecs
import urllib,urllib2
class UtilsVars:
already_fixed_encoding = False
@ -627,15 +626,3 @@ if qt_available:
vpos = ( main_window_size.height() - window.height() ) / 2
# And the move call repositions the window
window.move(hpos + main_window_size.left(), vpos + main_window_size.top())
def getLatestVersion():
try:
resp = urllib2.urlopen( "https://comictagger.googlecode.com/svn/trunk/current_version.txt" )
new_version = resp.read()
except Exception as e:
return None
if new_version is None or new_version == "":
return None
return new_version.strip()