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

Function get_size

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

Source from the content-addressed store, hash-verified

114 break
115
116def get_size():
117 while True:
118 try:
119 size = int(raw_input('File Size: '))
120 if 0 < size < 4294967296:
121 return size
122 else:
123 print 'ERROR: Size Must Be Between 1 And 4294967295'
124 except Exception, error:
125 if error.__class__ is EOFError:
126 raise EOFError
127 else:
128 print 'ERROR: Size Must Be A Number'
129
130def search_bmp(data, size):
131 global bmp_magic_a

Callers 1

extractFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected