capybara/virtualenv/lib/python2.7/site-packages/amazon/api.py
def _safe_get_element_text(self, path, root=None):
        """Safe get element text.

        Get element as string or None,
        :param root:
            Lxml element.
        :param path:
            String path (i.e. 'Items.Item.Offers.Offer').
        :return:
            String or None.
        """
        element = self._safe_get_element(path, root)
        if element:
            return element.text
        else:
            return None
def _safe_get_element_text(self, path, root=None):
        element = self._safe_get_element(path, root)
        if element:
            return element.text
        else:
            return None
def _safe_get_element_text ( self , path , root = None ) : element = self . _safe_get_element ( path , root ) if element : return element . text else : return None
Safe get element text.

        Get element as string or None,
        :param root:
            Lxml element.
        :param path:
            String path (i.e. 'Items.Item.Offers.Offer').
        :return:
            String or None.
Safe get element text .