def find_version(*file_paths):
 version_file = read(*file_paths)
 version_match = re.search('^__version__ = [\'\\"]([^\'\\"]*)[\'\\"]', version_file, re.M)
 if version_match:
  return version_match.group(1)
 raise RuntimeError('Unable to find version string.')

def find_version ( * file_paths ) : version_file = read ( * file_paths ) version_match = re . search ( '^__version__ = [\'\\"]([^\'\\"]*)[\'\\"]' , version_file , re . M ) if version_match : return version_match . group ( 1 ) raise RuntimeError ( 'Unable to find version string.' )
attempts to find the version number in the file names fname .