diff options
| author | arcadia-devtools <[email protected]> | 2022-02-12 14:35:15 +0300 | 
|---|---|---|
| committer | arcadia-devtools <[email protected]> | 2022-02-12 14:35:15 +0300 | 
| commit | 46a8b83899dd321edf511c0483f9c479ce2c1bc4 (patch) | |
| tree | e5debc03beecbd10e7d1bf78c889c8d54e8c4523 /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py | |
| parent | b56bbcc9f63bf31991a8aa118555ce0c12875a74 (diff) | |
intermediate changes
ref:7c971b97c72bbbcbf889118d39017bd14f99365a
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py')
| -rw-r--r-- | contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py index deb2f432227..5d27ab26c9f 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py @@ -135,7 +135,7 @@ class Char:          __ne__ = _not_equal      def __repr__(self) -> str: -        return "%s(%r, %r)" % (self.__class__.__name__, self.char, self.style) +        return f"{self.__class__.__name__}({self.char!r}, {self.style!r})"  _CHAR_CACHE: FastDictCache[Tuple[str, str], Char] = FastDictCache( @@ -318,7 +318,7 @@ class WritePosition:          self.height = height      def __repr__(self) -> str: -        return "%s(x=%r, y=%r, width=%r, height=%r)" % ( +        return "{}(x={!r}, y={!r}, width={!r}, height={!r})".format(              self.__class__.__name__,              self.xpos,              self.ypos,  | 
