Skip to content

Commit

Permalink
Update remove_space.py so documented example works
Browse files Browse the repository at this point in the history
The example in the readme indicates that 

`python remove_space.py --delimiter "-" --yes`

should bypass the interactive query

it doesn't work, because the query function returns none instead of true when bypass=True
  • Loading branch information
jo-tham authored Jan 10, 2019
1 parent 223670a commit bb05d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/remove_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def query_yes_no(question, default="yes", bypass=False):
while True:
sys.stdout.write(question + prompt)
if bypass:
break
return True
if sys.version_info[0] == 3:
choice = input().lower() # if version 3 of Python
else:
Expand Down

0 comments on commit bb05d99

Please sign in to comment.