aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.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/validation.py
parentb56bbcc9f63bf31991a8aa118555ce0c12875a74 (diff)
downloadydb-46a8b83899dd321edf511c0483f9c479ce2c1bc4.tar.gz
intermediate changes
ref:7c971b97c72bbbcbf889118d39017bd14f99365a
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py
index db2f3fd1c6..8bdffff524 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/validation.py
@@ -34,7 +34,7 @@ class ValidationError(Exception):
self.message = message
def __repr__(self) -> str:
- return "%s(cursor_position=%r, message=%r)" % (
+ return "{}(cursor_position={!r}, message={!r})".format(
self.__class__.__name__,
self.cursor_position,
self.message,
@@ -114,7 +114,7 @@ class _ValidatorFromCallable(Validator):
self.move_cursor_to_end = move_cursor_to_end
def __repr__(self) -> str:
- return "Validator.from_callable(%r)" % (self.func,)
+ return f"Validator.from_callable({self.func!r})"
def validate(self, document: Document) -> None:
if not self.func(document.text):