FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove assignments to local variables which are never used · allgo27/bpython@54e83c8 · GitHub

forked from bpython/bpython

Commit 54e83c8

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

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL