Skip to content

Commit 713edbc

Browse files
authored
pythongh-141415: Remove unused variables and comment in _pyrepl.windows_console.py (python#141416)
1 parent 759a048 commit 713edbc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Lib/_pyrepl/windows_console.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -249,22 +249,10 @@ def input_hook(self):
249249
def __write_changed_line(
250250
self, y: int, oldline: str, newline: str, px_coord: int
251251
) -> None:
252-
# this is frustrating; there's no reason to test (say)
253-
# self.dch1 inside the loop -- but alternative ways of
254-
# structuring this function are equally painful (I'm trying to
255-
# avoid writing code generators these days...)
256252
minlen = min(wlen(oldline), wlen(newline))
257253
x_pos = 0
258254
x_coord = 0
259255

260-
px_pos = 0
261-
j = 0
262-
for c in oldline:
263-
if j >= px_coord:
264-
break
265-
j += wlen(c)
266-
px_pos += 1
267-
268256
# reuse the oldline as much as possible, but stop as soon as we
269257
# encounter an ESCAPE, because it might be the start of an escape
270258
# sequence
@@ -358,7 +346,6 @@ def prepare(self) -> None:
358346
self.height, self.width = self.getheightwidth()
359347

360348
self.posxy = 0, 0
361-
self.__gone_tall = 0
362349
self.__offset = 0
363350

364351
if self.__vt_support:

0 commit comments

Comments
 (0)