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

Function get_save_point

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

Source from the content-addressed store, hash-verified

170 print 'ERROR: Must Be A Number'
171
172def get_save_point():
173 while True:
174 try:
175 return open(raw_input('Save To: '), 'wb', 0)
176 except Exception, error:
177 if error.__class__ == EOFError:
178 raise EOFError
179 else:
180 print 'ERROR: Filename Is Invalid'
181
182if __name__ == '__main__':
183 main()

Callers 1

extractFunction · 0.70

Calls 1

openFunction · 0.50

Tested by

no test coverage detected