third_party/blink/tools/blinkpy/common/checkout/baseline_optimizer.py
def _platform(self, filename):
        """Guesses the platform from a path (absolute or relative).

        Returns:
            The platform name, or '(generic)' if unable to make a guess.
        """
        platform_dir = self._web_tests_dir_name + self._filesystem.sep + 'platform' + self._filesystem.sep
        if filename.startswith(platform_dir):
            return filename.replace(platform_dir,
                                    '').split(self._filesystem.sep)[0]
        platform_dir = self._filesystem.join(self._parent_of_tests,
                                             platform_dir)
        if filename.startswith(platform_dir):
            return filename.replace(platform_dir,
                                    '').split(self._filesystem.sep)[0]
        return '(generic)'
Guesses the platform from a path (absolute or relative).

        Returns:
            The platform name, or '(generic)' if unable to make a guess.
        
Guesses the platform from a path (absolute or relative).
Guesses the platform from a path ( absolute or relative ) .
def _platform(self, filename):
        platform_dir = self._web_tests_dir_name + self._filesystem.sep + 'platform' + self._filesystem.sep
        if filename.startswith(platform_dir):
            return filename.replace(platform_dir,
                                    '').split(self._filesystem.sep)[0]
        platform_dir = self._filesystem.join(self._parent_of_tests,
                                             platform_dir)
        if filename.startswith(platform_dir):
            return filename.replace(platform_dir,
                                    '').split(self._filesystem.sep)[0]
        return '(generic)'
def _platform ( self , filename ) : platform_dir = self . _web_tests_dir_name + self . _filesystem . sep + 'platform' + self . _filesystem . sep if filename . startswith ( platform_dir ) : return filename . replace ( platform_dir , '' ) . split ( self . _filesystem . sep ) [ 0 ] platform_dir = self . _filesystem . join ( self . _parent_of_tests , platform_dir ) if filename . startswith ( platform_dir ) : return filename . replace ( platform_dir , '' ) . split ( self . _filesystem . sep ) [ 0 ] return '(generic)'
Guesses the platform from a path (absolute or relative).
Guesses the platform from a path ( absolute or relative ) .
"""Guesses the platform from a path (absolute or relative).

        Returns:
            The platform name, or '(generic)' if unable to make a guess.
        """
The platform name, or '(generic)' if unable to make a guess.
The platform name or ' ( generic ) ' if unable to make a guess .
self
filename