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

Function work_query

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

Source from the content-addressed store, hash-verified

73 print '(4) Exit'
74
75def work_query():
76 while True:
77 try:
78 select = int(raw_input('Select: '))
79 if 0 < select < 5:
80 return select
81 else:
82 print 'ERROR: Selection Must Be Between 1 And 4'
83 except Exception, error:
84 if error.__class__ is EOFError:
85 print
86 print 'ERROR: Selection Must Be A Number'
87
88def extract_bmp(data):
89 extract(data, True)

Callers 1

workspaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected