Skip to content

Commit 54e83c8

Browse files
committed
Remove assignments to local variables which are never used
1 parent a67c2d3 commit 54e83c8

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

bpython/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,6 @@ def lsize():
12981298
rows += 1
12991299

13001300
if rows + 2 >= max_h:
1301-
rows = max_h - 2
13021301
return False
13031302

13041303
shared.rows = rows

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def showtraceback(self):
236236
l.insert(0, "Traceback (most recent call last):\n")
237237
l[len(l):] = traceback.format_exception_only(t, v)
238238
finally:
239-
tblist = tb = None
239+
pass
240240

241241
self.writetb(l)
242242

bpython/urwid.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,6 @@ def tab(self, back=False):
11031103
cw = self.current_string() or self.cw()
11041104
if not cw:
11051105
return True
1106-
else:
1107-
cw = self.matches_iter.current_word
11081106

11091107
if self.matches_iter.is_cseq():
11101108
cursor, text = self.matches_iter.substitute_cseq()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy