Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0e22ee07
authored
Oct 05, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed newline at end of prompt.
parent
7a9bd9b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
generate.py
+1
-1
No files found.
generate.py
View file @
0e22ee07
...
@@ -35,7 +35,7 @@ def query_yes_no(question, default=None):
...
@@ -35,7 +35,7 @@ def query_yes_no(question, default=None):
raise
ValueError
(
'Invalid default answer {}'
.
format
(
default
))
raise
ValueError
(
'Invalid default answer {}'
.
format
(
default
))
while
True
:
while
True
:
print
(
question
,
prompt
)
print
(
question
,
prompt
,
end
=
''
)
choice
=
input
()
.
lower
()
choice
=
input
()
.
lower
()
if
'yes'
.
find
(
choice
)
==
0
:
if
'yes'
.
find
(
choice
)
==
0
:
return
True
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment