Clarify usage of encrypt arg (#43330)

According to the do_encrypt interface, encrypt arg should be the hash method name used for encrypting returning password. But in the doc and lookup code it's a boolean flag, correct it to string.
This commit is contained in:
Zhikang Zhang 2018-08-02 14:03:49 -04:00 committed by GitHub
parent 62d8c8fde6
commit 3a3869f4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -333,7 +333,7 @@ class TestFormatContent(unittest.TestCase):
self.assertEqual(
password._format_content(password=u'hunter42',
salt=None,
encrypt=False),
encrypt=None),
u'hunter42')
def test_encrypt(self):