chrome/test/mini_installer/variable_expander.py
def Expand(self, a_string):
        """Expands variables in the given string.

        This method resolves only variables defined in the constructor. It does
        not resolve environment variables. Any dollar signs that are not part of
        variables must be escaped with $$, otherwise a KeyError or a ValueError
        will be raised.

        Args:
            a_string: A string.

        Returns:
            A new string created by replacing variables with their values.
        """
        return string.Template(a_string).substitute(self._variable_mapping)
Expands variables in the given string.

        This method resolves only variables defined in the constructor. It does
        not resolve environment variables. Any dollar signs that are not part of
        variables must be escaped with $$, otherwise a KeyError or a ValueError
        will be raised.

        Args:
            a_string: A string.

        Returns:
            A new string created by replacing variables with their values.
        
Expands variables in the given string.
This method resolves only variables defined in the constructor. It does
not resolve environment variables. Any dollar signs that are not part of
variables must be escaped with $$, otherwise a KeyError or a ValueError
will be raised.
Expands variables in the given string . This method resolves only variables defined in the constructor . It does not resolve environment variables . Any dollar signs that are not part of variables must be escaped with $$ otherwise a KeyError or a ValueError will be raised .
def Expand(self, a_string):
        return string.Template(a_string).substitute(self._variable_mapping)
def Expand ( self , a_string ) : return string . Template ( a_string ) . substitute ( self . _variable_mapping )
Expands variables in the given string.
Expands variables in the given string .
"""Expands variables in the given string.

        This method resolves only variables defined in the constructor. It does
        not resolve environment variables. Any dollar signs that are not part of
        variables must be escaped with $$, otherwise a KeyError or a ValueError
        will be raised.

        Args:
            a_string: A string.

        Returns:
            A new string created by replacing variables with their values.
        """
A new string created by replacing variables with their values.
A new string created by replacing variables with their values .
self
a_string
None