Set default password for encrypted files.
(self, pwd)
| 1649 | return info |
| 1650 | |
| 1651 | def setpassword(self, pwd): |
| 1652 | """Set default password for encrypted files.""" |
| 1653 | if pwd and not isinstance(pwd, bytes): |
| 1654 | raise TypeError("pwd: expected bytes, got %s" % type(pwd).__name__) |
| 1655 | if pwd: |
| 1656 | self.pwd = pwd |
| 1657 | else: |
| 1658 | self.pwd = None |
| 1659 | |
| 1660 | @property |
| 1661 | def comment(self): |
no outgoing calls