aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-06-14 17:46:04 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-06-14 18:00:06 +0300
commit85f6451860166545196ffa2950aa68be2363733b (patch)
tree4443b7b2465bda4bdc3589314f258329ecaedb38 /contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
parentfa297dd4855aef4bd79faebb48120708d2f9249d (diff)
downloadydb-85f6451860166545196ffa2950aa68be2363733b.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py b/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
index deef6b80b4..3d55dbc514 100644
--- a/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
+++ b/contrib/python/prompt-toolkit/py3/tests/test_regular_languages.py
@@ -78,13 +78,13 @@ def test_prefix():
def test_completer():
class completer1(Completer):
def get_completions(self, document, complete_event):
- yield Completion("before-%s-after" % document.text, -len(document.text))
- yield Completion("before-%s-after-B" % document.text, -len(document.text))
+ yield Completion(f"before-{document.text}-after", -len(document.text))
+ yield Completion(f"before-{document.text}-after-B", -len(document.text))
class completer2(Completer):
def get_completions(self, document, complete_event):
- yield Completion("before2-%s-after2" % document.text, -len(document.text))
- yield Completion("before2-%s-after2-B" % document.text, -len(document.text))
+ yield Completion(f"before2-{document.text}-after2", -len(document.text))
+ yield Completion(f"before2-{document.text}-after2-B", -len(document.text))
# Create grammar. "var1" + "whitespace" + "var2"
g = compile(r"(?P<var1>[a-z]*) \s+ (?P<var2>[a-z]*)")