aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-12 14:35:15 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-12 14:35:15 +0300
commit46a8b83899dd321edf511c0483f9c479ce2c1bc4 (patch)
treee5debc03beecbd10e7d1bf78c889c8d54e8c4523 /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py
parentb56bbcc9f63bf31991a8aa118555ce0c12875a74 (diff)
downloadydb-46a8b83899dd321edf511c0483f9c479ce2c1bc4.tar.gz
intermediate changes
ref:7c971b97c72bbbcbf889118d39017bd14f99365a
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py
index 571e952971..722658a846 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py
@@ -201,8 +201,8 @@ class HighlightSearchProcessor(Processor):
) = transformation_input.unpack()
search_text = self._get_search_text(buffer_control)
- searchmatch_fragment = " class:%s " % (self._classname,)
- searchmatch_current_fragment = " class:%s " % (self._classname_current,)
+ searchmatch_fragment = f" class:{self._classname} "
+ searchmatch_current_fragment = f" class:{self._classname_current} "
if search_text and not get_app().is_done:
# For each search match, replace the style string.
@@ -526,7 +526,7 @@ class BeforeInput(Processor):
)
def __repr__(self) -> str:
- return "BeforeInput(%r, %r)" % (self.text, self.style)
+ return f"BeforeInput({self.text!r}, {self.style!r})"
class ShowArg(BeforeInput):
@@ -580,7 +580,7 @@ class AfterInput(Processor):
return Transformation(fragments=ti.fragments)
def __repr__(self) -> str:
- return "%s(%r, style=%r)" % (self.__class__.__name__, self.text, self.style)
+ return f"{self.__class__.__name__}({self.text!r}, style={self.style!r})"
class AppendAutoSuggestion(Processor):
@@ -940,7 +940,7 @@ class ConditionalProcessor(Processor):
return Transformation(transformation_input.fragments)
def __repr__(self) -> str:
- return "%s(processor=%r, filter=%r)" % (
+ return "{}(processor={!r}, filter={!r})".format(
self.__class__.__name__,
self.processor,
self.filter,