third_party/blink/tools/blinkpy/common/checkout/baseline_optimizer.py
def _port_from_baseline_dir(self, baseline_dir):
        """Returns a Port object from the given baseline directory."""
        baseline_dir = self._filesystem.basename(baseline_dir)
        for port in self._ports.values():
            if self._filesystem.basename(
                    port.baseline_version_dir()) == baseline_dir:
                return port
        raise Exception(
            'Failed to find port for primary baseline %s.' % baseline_dir)
Returns a Port object from the given baseline directory.
Returns a Port object from the given baseline directory.
Returns a Port object from the given baseline directory .
def _port_from_baseline_dir(self, baseline_dir):
        baseline_dir = self._filesystem.basename(baseline_dir)
        for port in self._ports.values():
            if self._filesystem.basename(
                    port.baseline_version_dir()) == baseline_dir:
                return port
        raise Exception(
            'Failed to find port for primary baseline %s.' % baseline_dir)
def _port_from_baseline_dir ( self , baseline_dir ) : baseline_dir = self . _filesystem . basename ( baseline_dir ) for port in self . _ports . values ( ) : if self . _filesystem . basename ( port . baseline_version_dir ( ) ) == baseline_dir : return port raise Exception ( 'Failed to find port for primary baseline %s.' % baseline_dir )
Returns a Port object from the given baseline directory.
Returns a Port object from the given baseline directory .
"""Returns a Port object from the given baseline directory."""
self
baseline_dir