(imagepath, password=None)
return _DictFromSubprocess(command, stdin=password)
calls hdiutil imageinfo -plist and returns as dict.
calls hdiutil imageinfo -plist and returns as dict.
calls hdiutil imageinfo - plist and returns as dict .
def _DictFromHdiutilImageInfo(imagepath, password=None):
  """calls hdiutil imageinfo -plist and returns as dict."""

  if not password:
    command = ["/usr/bin/hdiutil", "imageinfo", "-plist", imagepath]
  else:
    command = ["/usr/bin/hdiutil", "imageinfo", "-encryption", "-stdinpass",
               "-plist", imagepath]

  return _DictFromSubprocess(command, stdin=password)
def _DictFromHdiutilImageInfo ( imagepath , password = None ) : if not password : command = [ "/usr/bin/hdiutil" , "imageinfo" , "-plist" , imagepath ] else : command = [ "/usr/bin/hdiutil" , "imageinfo" , "-encryption" , "-stdinpass" , "-plist" , imagepath ] return _DictFromSubprocess ( command , stdin = password )