The pprint function for regular expression patterns.
(obj, p, cycle)
| 742 | |
| 743 | |
| 744 | def _re_pattern_pprint(obj, p, cycle): |
| 745 | """The pprint function for regular expression patterns.""" |
| 746 | re_compile = CallExpression.factory('re.compile') |
| 747 | if obj.flags: |
| 748 | p.pretty(re_compile(RawStringLiteral(obj.pattern), _ReFlags(obj.flags))) |
| 749 | else: |
| 750 | p.pretty(re_compile(RawStringLiteral(obj.pattern))) |
| 751 | |
| 752 | |
| 753 | def _types_simplenamespace_pprint(obj, p, cycle): |
nothing calls this directly
no test coverage detected
searching dependent graphs…