parameters: (build_override, build_changelist_file)
return_statement: return None
docstring: Returns the changelist number from the value or the file path.
docstring_summary: Returns the changelist number from the value or the file path.
docstring_tokens: Returns the changelist number from the value or the file path .
function: def _GetChangelistNumber(build_override, build_changelist_file):
    """Returns the changelist number from the value or the file path."""
    if build_override:
      return build_override
  
    if not build_changelist_file:
      return None
  
    with open(build_changelist_file, 'r') as cl_file:
      for line in cl_file:
        if line.startswith('BUILD_CHANGELIST'):
          return line.rstrip().split(' ')[1]
  
    return None
function_tokens: def _GetChangelistNumber ( build_override , build_changelist_file ) : if build_override : return build_override if not build_changelist_file : return None with open ( build_changelist_file , 'r' ) as cl_file : for line in cl_file : if line . startswith ( 'BUILD_CHANGELIST' ) : return line . rstrip ( ) . split ( ' ' ) [ 1 ] return None