module documentation
Undocumented
Function | color |
Undocumented |
Function | color2 |
Pain text colorize. |
Function | color |
Undocumented |
Function | colorhtml |
Undocumented |
Function | extract |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Binary strings (bytes) are handled properly: |
Function | test |
Test that the colorizer does not make the flatten function crash when passing surrogates unicode strings. |
Function | test |
Undocumented |
Function | test |
Dicts are treated just like lists, except that the ":" is also tagged as "op". |
Function | test |
Undocumented |
Function | test |
Lists, tuples, and sets are all colorized using the same method. The braces and commas are tagged with "op". If the value can fit on the current line, it is displayed on one line. Otherwise, each value is listed on a separate line, indented by the size of the open-bracket. |
Function | test |
Undocumented |
Function | test |
Long ints will get wrapped if they're big enough. |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
This test might fail in the future, when twisted's XMLString supports XHTML entities (see https://github.com/twisted/twisted/issues/11581). But it will always fail for python 3.6 since twisted dropped support for these versions of python. |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Test a few representations, with a plain text version. |
Function | test |
Integers, floats, None, and complex numbers get printed using str, with no syntax highlighting. |
Function | test |
Strings have their quotation marks tagged as 'quote'. Characters are escaped using the 'string-escape' encoding. |
Function | test |
Strings containing newlines are automatically rendered as multiline strings. |
Function | test |
Currently, the "'" quote is always used, because that's what the 'string-escape' encoding expects. |
Function | test |
Undocumented |
Function | test |
To generate summary-reprs, use maxlines=1 and linebreakok=False: |
Function | test |
Regex string are escaped their own way. See https://github.com/twisted/pydoctor/pull/493 |
Function | test |
Tuples that contains only one value need an ending comma. |
Function | test |
Unicode strings are handled properly. |
Test that the colorizer does not make the flatten function crash when passing surrogates unicode strings.
Lists, tuples, and sets are all colorized using the same method. The braces and commas are tagged with "op". If the value can fit on the current line, it is displayed on one line. Otherwise, each value is listed on a separate line, indented by the size of the open-bracket.
This test might fail in the future, when twisted's XMLString supports XHTML entities (see https://github.com/twisted/twisted/issues/11581). But it will always fail for python 3.6 since twisted dropped support for these versions of python.
Strings have their quotation marks tagged as 'quote'. Characters are escaped using the 'string-escape' encoding.