MCPcopy Create free account
hub / github.com/ActiveState/code / main_query

Function main_query

recipes/Python/456375_File_Extractor/recipe-456375.py:26–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 print '(2) Quit Application'
25
26def main_query():
27 while True:
28 try:
29 select = int(raw_input('Select: '))
30 if 0 < select < 3:
31 return select
32 else:
33 print 'ERROR: Selection Must Be 1 Or 2'
34 except Exception, error:
35 if error.__class__ is EOFError:
36 print
37 print 'ERROR: Selection Must Be A Number'
38
39def workspace():
40 try:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected