def unrar_check(rar):
 version = 0
 original = ''
 if rar:
  try:
   version = run_simple(rar)
  except:
   return (version, original)
  original = ('Alexander Roshal' in version)
  m = re.search('RAR\\s(\\d+)\\.(\\d+)', version)
  if m:
   version = ((int(m.group(1)) * 100) + int(m.group(2)))
  else:
   version = 0
 return (version, original)

def unrar_check ( rar ) : version = 0 original = '' if rar : try : version = run_simple ( rar ) except : return ( version , original ) original = ( 'Alexander Roshal' in version ) m = re . search ( 'RAR\\s(\\d+)\\.(\\d+)' , version ) if m : version = ( ( int ( m . group ( 1 ) ) * 100 ) + int ( m . group ( 2 ) ) ) else : version = 0 return ( version , original )
return version number of unrar .