ppapi/generators/idl_thunk.py
def _StripFileName(filenode):
  """Strips path  and dev, trusted, and private suffixes from the file name."""
  api_basename = _GetBaseFileName(filenode)
  if api_basename.endswith('_dev'):
    api_basename = api_basename[:-len('_dev')]
  if api_basename.endswith('_trusted'):
    api_basename = api_basename[:-len('_trusted')]
  if api_basename.endswith('_private'):
    api_basename = api_basename[:-len('_private')]
  return api_basename
Strips path  and dev, trusted, and private suffixes from the file name.
Strips path  and dev, trusted, and private suffixes from the file name.
Strips path and dev trusted and private suffixes from the file name .
def _StripFileName(filenode):
  api_basename = _GetBaseFileName(filenode)
  if api_basename.endswith('_dev'):
    api_basename = api_basename[:-len('_dev')]
  if api_basename.endswith('_trusted'):
    api_basename = api_basename[:-len('_trusted')]
  if api_basename.endswith('_private'):
    api_basename = api_basename[:-len('_private')]
  return api_basename
def _StripFileName ( filenode ) : api_basename = _GetBaseFileName ( filenode ) if api_basename . endswith ( '_dev' ) : api_basename = api_basename [ : - len ( '_dev' ) ] if api_basename . endswith ( '_trusted' ) : api_basename = api_basename [ : - len ( '_trusted' ) ] if api_basename . endswith ( '_private' ) : api_basename = api_basename [ : - len ( '_private' ) ] return api_basename
Strips path  and dev, trusted, and private suffixes from the file name.
Strips path and dev trusted and private suffixes from the file name .
"""Strips path  and dev, trusted, and private suffixes from the file name."""
filenode