Show More
@@ -724,8 +724,15 b' class _ReFlags:' | |||
|
724 | 724 | |
|
725 | 725 | def _repr_pretty_(self, p, cycle): |
|
726 | 726 | done_one = False |
|
727 | for flag in ('IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL', | |
|
728 | 'UNICODE', 'VERBOSE', 'DEBUG'): | |
|
727 | for flag in ( | |
|
728 | "IGNORECASE", | |
|
729 | "LOCALE", | |
|
730 | "MULTILINE", | |
|
731 | "DOTALL", | |
|
732 | "UNICODE", | |
|
733 | "VERBOSE", | |
|
734 | "DEBUG", | |
|
735 | ): | |
|
729 | 736 | if self.value & getattr(re, flag): |
|
730 | 737 | if done_one: |
|
731 | 738 | p.text('|') |
General Comments 0
You need to be logged in to leave comments.
Login now