Skip to content

Commit 742096d

Browse files
committed
Remove irrelevant self.dch1 comment and unused px_pos variable
1 parent 5c0593b commit 742096d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Lib/_pyrepl/windows_console.py

Lines changed: 0 additions & 12 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

0 commit comments

Comments
 (0)