121
108
return '%.1f %s' % (float(size) / factor, unit)
153
110
class USBCreatorProcessException(Exception):
156
113
def popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
167
117
process = subprocess.Popen(cmd, stdout=stdout, stderr=stderr, stdin=stdin,