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

Function workspace

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

Source from the content-addressed store, hash-verified

37 print 'ERROR: Selection Must Be A Number'
38
39def workspace():
40 try:
41 data = get_file()
42 while True:
43 work_menu()
44 select = work_query()
45 if select == 1:
46 extract_bmp(data)
47 elif select == 2:
48 extract_jpg(data)
49 elif select == 3:
50 break
51 else:
52 raise SystemExit
53 except Exception, error:
54 if error.__class__ is SystemExit:
55 raise SystemExit
56 else:
57 print
58
59def get_file():
60 while True:

Callers 1

mainFunction · 0.70

Calls 5

get_fileFunction · 0.70
work_menuFunction · 0.70
work_queryFunction · 0.70
extract_bmpFunction · 0.70
extract_jpgFunction · 0.70

Tested by

no test coverage detected