Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename variable to fix redefined-builtin warning #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions rebound/rebound.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ def __init__(self, search_results):
self.main_loop.run()


def _handle_input(self, input):
if input == "enter": # View answers
def _handle_input(self, input_val):
if input_val == "enter": # View answers
url = self._get_selected_link()

if url != None:
Expand All @@ -755,18 +755,18 @@ def _handle_input(self, input):
])

self.main_loop.widget = urwid.Frame(body=urwid.Overlay(linebox, self.content_container, "center", ("relative", 60), "middle", 23), footer=menu)
elif input in ('b', 'B'): # Open link
elif input_val in ('b', 'B'): # Open link
url = self._get_selected_link()

if url != None:
webbrowser.open(url)
elif input == "esc": # Close window
elif input_val == "esc": # Close window
if self.viewing_answers:
self.main_loop.widget = self.original_widget
self.viewing_answers = False
else:
raise urwid.ExitMainLoop()
elif input in ('q', 'Q'): # Quit
elif input_val in ('q', 'Q'): # Quit
raise urwid.ExitMainLoop()


Expand Down