def lineagename_for_filename(config_filename):
 if (not config_filename.endswith('.conf')):
  raise errors.CertStorageError('renewal config file name must end in .conf')
 return os.path.basename(config_filename[:(- len('.conf'))])

def lineagename_for_filename ( config_filename ) : if ( not config_filename . endswith ( '.conf' ) ) : raise errors . CertStorageError ( 'renewal config file name must end in .conf' ) return os . path . basename ( config_filename [ : ( - len ( '.conf' ) ) ] )
returns the lineagename for a configuration filename .