Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/html2latex/patterns.py   ftw.pdfgenerator(Download)
MODE_REPLACE = interfaces.HTML2LATEX_MODE_REPLACE
MODE_REGEXP = interfaces.HTML2LATEX_MODE_REGEXP
MODE_REGEXP_FUNCTION = interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION
BACKSLASH_MARKER = 'THISISABACKSLASH' * 2
 

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/html2latex/converter.py   ftw.pdfgenerator(Download)
    def get_subconverter_by_pattern(self, pattern):
        for ptn in self.patterns:
            if ptn[0] == interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION and \
                    ptn[1] == pattern:
                return ptn[2]
        """
        self._insert_custom_pattern(
            pattern=(interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION,
                     converter_class.pattern,
                     converter_class),
 
            # regexp function
            elif mode == interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION:
                self._replace_regexp_function(search, replace)
 

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_converter.py   ftw.pdfgenerator(Download)
MODE_REPLACE = interfaces.HTML2LATEX_MODE_REPLACE
MODE_REGEXP = interfaces.HTML2LATEX_MODE_REGEXP
MODE_REGEXP_FUNCTION = interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION
DEFAULT_PLACEHOLDER = interfaces.HTML2LATEX_CUSTOM_PATTERN_PLACEHOLDER
 
    def test_placeholder_wrapper(self):
        placeholder = interfaces.HTML2LATEX_CUSTOM_PATTERN_PLACEHOLDER_BOTTOM
        mode = interfaces.HTML2LATEX_MODE_REGEXP_FUNCTION
 
        wrap = wrapper.CustomPatternAtPlaceholderWrapper(