tools/metrics/histograms/expand_owners_unittest.py
def _GetFileDirective(path):
  """Returns a file directive line.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A file directive that can be used in an OWNERS file, e.g.
    file://tools/OWNERS.
  """
  return ''.join(['file://', path[len(_GetToolsParentDir()) + 1:]])
Returns a file directive line.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A file directive that can be used in an OWNERS file, e.g.
    file://tools/OWNERS.
  
Returns a file directive line.
Returns a file directive line .
def _GetFileDirective(path):
  return ''.join(['file://', path[len(_GetToolsParentDir()) + 1:]])
def _GetFileDirective ( path ) : return '' . join ( [ 'file://' , path [ len ( _GetToolsParentDir ( ) ) + 1 : ] ] )
Returns a file directive line.
Returns a file directive line .
"""Returns a file directive line.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A file directive that can be used in an OWNERS file, e.g.
    file://tools/OWNERS.
  """
A file directive that can be used in an OWNERS file, e.g.
A file directive that can be used in an OWNERS file e . g .
path
An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.
An absolute path e . g . ' / some / directory / subdirectory / tools / OWNERS ' .