diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-10-20 11:16:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 11:16:55 +1100 |
commit | e1728dfcbe585edfb590bce50adeaab341a70db8 (patch) | |
tree | 0ae215c46f15ecc917bf45d75430298a003b0e27 /scripts/hash_password | |
parent | Merge branch 'rav/fix_email_templates_4065' into develop (diff) | |
download | synapse-e1728dfcbe585edfb590bce50adeaab341a70db8.tar.xz |
Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase on py3) (#4068)
Diffstat (limited to 'scripts/hash_password')
-rwxr-xr-x | scripts/hash_password | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/hash_password b/scripts/hash_password index 215ab25cfe..a62bb5aa83 100755 --- a/scripts/hash_password +++ b/scripts/hash_password @@ -1,12 +1,10 @@ #!/usr/bin/env python import argparse - +import getpass import sys import bcrypt -import getpass - import yaml bcrypt_rounds=12 @@ -52,4 +50,3 @@ if __name__ == "__main__": password = prompt_for_pass() print bcrypt.hashpw(password + password_pepper, bcrypt.gensalt(bcrypt_rounds)) - |