From f7a09f5f5fe52740825acf5a72a427922eb48dbe 2024-10-24 16:01:19 From: Wim Jeantine-Glenn Date: 2024-10-24 16:01:19 Subject: [PATCH] Fix re pattern pretty print Alternative to #14558 --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index 48422c2..e287301 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -724,7 +724,7 @@ class _ReFlags: def _repr_pretty_(self, p, cycle): done_one = False - for flag in ('TEMPLATE', 'IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL', + for flag in ('IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL', 'UNICODE', 'VERBOSE', 'DEBUG'): if self.value & getattr(re, flag): if done_one: