py_nextbus/client.py
def _get_agency(self, agency):
        """Get the agency name from either the provided argument or "agency" instance attribute.

        Args:
            agency: Name of a transit agency on NextBus.

        Returns:
            The value of the "agency" argument if it is not None, or the value of the instance's
            "agency" atrribute if that is not None.

        Raises:
            ValueError: If both the value of the "agency" argument and this instance's "agency"
                atrribute are None.
        """

        if agency is None:
            if self.agency is None:
                raise ValueError('"agency" is required.')
            else:
                return self.agency
        else:
            return agency
Get the agency name from either the provided argument or "agency" instance attribute.

        Args:
            agency: Name of a transit agency on NextBus.

        Returns:
            The value of the "agency" argument if it is not None, or the value of the instance's
            "agency" atrribute if that is not None.

        Raises:
            ValueError: If both the value of the "agency" argument and this instance's "agency"
                atrribute are None.
        
Get the agency name from either the provided argument or "agency" instance attribute.
Get the agency name from either the provided argument or " agency " instance attribute .
def _get_agency(self, agency):
        if agency is None:
            if self.agency is None:
                raise ValueError('"agency" is required.')
            else:
                return self.agency
        else:
            return agency
def _get_agency ( self , agency ) : if agency is None : if self . agency is None : raise ValueError ( '"agency" is required.' ) else : return self . agency else : return agency
Get the agency name from either the provided argument or "agency" instance attribute.
Get the agency name from either the provided argument or " agency " instance attribute .
"""Get the agency name from either the provided argument or "agency" instance attribute.

        Args:
            agency: Name of a transit agency on NextBus.

        Returns:
            The value of the "agency" argument if it is not None, or the value of the instance's
            "agency" atrribute if that is not None.

        Raises:
            ValueError: If both the value of the "agency" argument and this instance's "agency"
                atrribute are None.
        """
The value of the "agency" argument if it is not None, or the value of the instance's
"agency" atrribute if that is not None.
The value of the " agency " argument if it is not None or the value of the instance ' s " agency " atrribute if that is not None .
If both the value of the "agency" argument and this instance's "agency"
atrribute are None.
If both the value of the " agency " argument and this instance ' s " agency " atrribute are None .
ValueError
self
agency
Name of a transit agency on NextBus.
Name of a transit agency on NextBus .