diff options
| author | Maxim Yurchuk <[email protected]> | 2024-11-13 16:32:39 +0300 |
|---|---|---|
| committer | Maxim Yurchuk <[email protected]> | 2024-11-13 16:32:39 +0300 |
| commit | 23387aafadce23ea77beffb2981e8c0e2f2a7f0a (patch) | |
| tree | 54b0f95fca1ad03d93f5a18abdfe98e8ab34b420 /contrib/python/ipython/py3/IPython/lib | |
| parent | ee51155da394b56a8e3329d25a514422e5da7bc3 (diff) | |
| parent | 4ab23311f7a6d45ac318179569df9ba46fb9ab68 (diff) | |
Merge branch 'rightlib' into mergelibs-yurchuk-manual
Diffstat (limited to 'contrib/python/ipython/py3/IPython/lib')
| -rw-r--r-- | contrib/python/ipython/py3/IPython/lib/pretty.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/python/ipython/py3/IPython/lib/pretty.py b/contrib/python/ipython/py3/IPython/lib/pretty.py index 8a24632d600..a232e4edf6f 100644 --- a/contrib/python/ipython/py3/IPython/lib/pretty.py +++ b/contrib/python/ipython/py3/IPython/lib/pretty.py @@ -541,7 +541,7 @@ class RawText: class CallExpression: """ Object which emits a line-wrapped call expression in the form `__name(*args, **kwargs)` """ def __init__(__self, __name, *args, **kwargs): - # dunders are to avoid clashes with kwargs, as python's name manging + # dunders are to avoid clashes with kwargs, as python's name managing # will kick in. self = __self self.name = __name @@ -555,7 +555,7 @@ class CallExpression: return inner def _repr_pretty_(self, p, cycle): - # dunders are to avoid clashes with kwargs, as python's name manging + # dunders are to avoid clashes with kwargs, as python's name managing # will kick in. started = False @@ -724,8 +724,15 @@ class _ReFlags: def _repr_pretty_(self, p, cycle): done_one = False - for flag in ('TEMPLATE', 'IGNORECASE', 'LOCALE', 'MULTILINE', 'DOTALL', - 'UNICODE', 'VERBOSE', 'DEBUG'): + for flag in ( + "IGNORECASE", + "LOCALE", + "MULTILINE", + "DOTALL", + "UNICODE", + "VERBOSE", + "DEBUG", + ): if self.value & getattr(re, flag): if done_one: p.text('|') |
