(self, val)
| 24 | self._update_disks() |
| 25 | |
| 26 | def _get_str(self, val): |
| 27 | # Helper method to return a string value based on input type |
| 28 | if (sys.version_info < (3,0) and isinstance(val, unicode)) or (sys.version_info >= (3,0) and isinstance(val, bytes)): |
| 29 | return val.encode("utf-8") |
| 30 | return str(val) |
| 31 | |
| 32 | def _get_plist(self, s): |
| 33 | p = {} |