environment/lib/python2.7/site-packages/IPython/frontend/qt/console/pygments_highlighter.py
def _get_format(self, token):
        """ Returns a QTextCharFormat for token or None.
        """
        if token in self._formats:
            return self._formats[token]

        if self._style is None:
            result = self._get_format_from_document(token, self._document)
        else:
            result = self._get_format_from_style(token, self._style)

        self._formats[token] = result
        return result
def _get_format(self, token):
        if token in self._formats:
            return self._formats[token]

        if self._style is None:
            result = self._get_format_from_document(token, self._document)
        else:
            result = self._get_format_from_style(token, self._style)

        self._formats[token] = result
        return result
def _get_format ( self , token ) : if token in self . _formats : return self . _formats [ token ] if self . _style is None : result = self . _get_format_from_document ( token , self . _document ) else : result = self . _get_format_from_style ( token , self . _style ) self . _formats [ token ] = result return result
Returns a QTextCharFormat for token or None.
Returns a QTextCharFormat for token or None .