Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Treat EOF at prompt as empty #24

Merged
merged 1 commit into from
Feb 19, 2016
Merged
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
11 changes: 7 additions & 4 deletions googler
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,13 @@ while True:
results = fetch_results()

oldstart = start
if sys.version_info > (3,):
nav = input("Enter 'n', 'p', 'g keywords', or result number to continue: ")
else:
nav = raw_input("Enter 'n', 'p', 'g keywords' or result number to continue: ")
try:
if sys.version_info > (3,):
nav = input("Enter 'n', 'p', 'g keywords', or result number to continue: ")
else:
nav = raw_input("Enter 'n', 'p', 'g keywords' or result number to continue: ")
except EOFError:
nav = ""

if nav == "n":
if num is not None:
Expand Down