MCPcopy Index your code
hub / github.com/ipython/ipython / _ReFlags

Class _ReFlags

IPython/lib/pretty.py:722–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720
721
722class _ReFlags:
723 def __init__(self, value):
724 self.value = value
725
726 def _repr_pretty_(self, p, cycle):
727 done_one = False
728 for flag in (
729 "IGNORECASE",
730 "LOCALE",
731 "MULTILINE",
732 "DOTALL",
733 "UNICODE",
734 "VERBOSE",
735 "DEBUG",
736 ):
737 if self.value & getattr(re, flag):
738 if done_one:
739 p.text('|')
740 p.text('re.' + flag)
741 done_one = True
742
743
744def _re_pattern_pprint(obj, p, cycle):

Callers 1

_re_pattern_pprintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…