Skip to content

Commit 31336e0

Browse files
committed
Updates
1 parent 4504104 commit 31336e0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

localtests/test_unicode_error.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import print_function, unicode_literals
3+
from PyInquirer import prompt
4+
5+
def main():
6+
choice = 'John’s Pizza'
7+
questions = [
8+
{
9+
'type': 'list',
10+
'name': 'pizza',
11+
'message': 'Pizzeria:',
12+
'choices' : [choice]
13+
}
14+
]
15+
answer = prompt(questions)
16+
pizza = answer['pizza']
17+
print('Answer is |' + pizza + '|' )
18+
19+
if __name__ == '__main__':
20+
main()

0 commit comments

Comments
 (0)