summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/lib/pretty.py
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-11-14 18:02:48 +0100
committerGitHub <[email protected]>2024-11-14 18:02:48 +0100
commit42393178e3ca660b7b2da431bc4c768aadafe856 (patch)
tree846127355de5d4088b4eefcab801b15c1ec4e454 /contrib/python/ipython/py3/IPython/lib/pretty.py
parentc0af8d60b18390f8ef7b3ff878b822c43da62a54 (diff)
parent51f34813686206b46686d84e96243def9f9da8df (diff)
Merge pull request #11568 from maximyurchuk/mergelibs-yurchuk-manual
Mergelibs yurchuk manual
Diffstat (limited to 'contrib/python/ipython/py3/IPython/lib/pretty.py')
-rw-r--r--contrib/python/ipython/py3/IPython/lib/pretty.py15
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('|')