aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/lib
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-11-09 12:07:32 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-11-09 12:17:11 +0300
commit381a9a45520ba56577e90032e086e0168a03b956 (patch)
treef49a7f9feff6df2c4916cf20205e9c22cb26dfd2 /contrib/python/ipython/py3/IPython/lib
parent66839121782766f516d9a33982e1968d319e3395 (diff)
downloadydb-381a9a45520ba56577e90032e086e0168a03b956.tar.gz
Intermediate changes
commit_hash:2e32c346f257520a6c3629b88dc628744d3d3386
Diffstat (limited to 'contrib/python/ipython/py3/IPython/lib')
-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 8a24632d60..a232e4edf6 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('|')