third_party/blink/tools/blinkpy/tool/commands/copy_existing_baselines.py
def _port_for_primary_baseline(self, baseline):
        """Returns a Port object for the given baseline directory base name."""
        for port in [
                self._tool.port_factory.get(port_name)
                for port_name in self._tool.port_factory.all_port_names()
        ]:
            if self._tool.filesystem.basename(
                    port.baseline_version_dir()) == baseline:
                return port
        raise Exception(
            'Failed to find port for primary baseline %s.' % baseline)
Returns a Port object for the given baseline directory base name.
Returns a Port object for the given baseline directory base name.
Returns a Port object for the given baseline directory base name .
def _port_for_primary_baseline(self, baseline):
        for port in [
                self._tool.port_factory.get(port_name)
                for port_name in self._tool.port_factory.all_port_names()
        ]:
            if self._tool.filesystem.basename(
                    port.baseline_version_dir()) == baseline:
                return port
        raise Exception(
            'Failed to find port for primary baseline %s.' % baseline)
def _port_for_primary_baseline ( self , baseline ) : for port in [ self . _tool . port_factory . get ( port_name ) for port_name in self . _tool . port_factory . all_port_names ( ) ] : if self . _tool . filesystem . basename ( port . baseline_version_dir ( ) ) == baseline : return port raise Exception ( 'Failed to find port for primary baseline %s.' % baseline )
Returns a Port object for the given baseline directory base name.
Returns a Port object for the given baseline directory base name .
"""Returns a Port object for the given baseline directory base name."""
self
baseline