Skip to content

Commit f7a09f5

Browse files
authored
Fix re pattern pretty print
Alternative to ipython#14558
1 parent 18e4529 commit f7a09f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IPython/lib/pretty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def __init__(self, value):
724724

725725
def _repr_pretty_(self, p, cycle):
726726
done_one = False
727-
for flag in ('TEMPLATE', 'IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL',
727+
for flag in ('IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL',
728728
'UNICODE', 'VERBOSE', 'DEBUG'):
729729
if self.value & getattr(re, flag):
730730
if done_one:

0 commit comments

Comments
 (0)