def getLatestVersionInfo():
 try:
  page = urllib.request.urlopen(versionURL)
 except urllib.error.URLError:
  return (-1)
 latest = {}
 for line in page.readlines():
  if (line.find(':') == (-1)):
   return (-1)
  (key, keyInfo) = line.split(':')
  latest[key] = keyInfo.replace('\n', '').replace('\r', '')
 return latest

def getLatestVersionInfo ( ) : try : page = urllib . request . urlopen ( versionURL ) except urllib . error . URLError : return ( - 1 ) latest = { } for line in page . readlines ( ) : if ( line . find ( ':' ) == ( - 1 ) ) : return ( - 1 ) ( key , keyInfo ) = line . split ( ':' ) latest [ key ] = keyInfo . replace ( '\n' , '' ) . replace ( '\r' , '' ) return latest
fetch info about the latest availiable version .