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

Function create_disk

recipes/Python/492215_diskdemopy/recipe-492215.py:58–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 use_disk(disk)
57
58def create_disk():
59 while True:
60 try:
61 print
62 print 'CREATE A DISK'
63 blocks = int(raw_input('BLOCKS: '))
64 size = int(raw_input('SIZE: '))
65 return DAL6(blocks, size)
66 except:
67 print 'INCORRECT VALUE'
68
69def load_disk():
70 while True:

Callers 1

loopFunction · 0.85

Calls 1

DAL6Class · 0.85

Tested by

no test coverage detected