summaryrefslogtreecommitdiff
path: root/contrib/scripts/voicemailpwcheck.py
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-04-19 03:40:02 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-04-19 03:40:02 -0500
commit8df2921e6edcffb5f0dad54456b654c891fff95d (patch)
tree7758c98a801f4c1efd4f6461ccb31f681120a64e /contrib/scripts/voicemailpwcheck.py
parent6ccf08c54382798609273e65fd67c2d16d6ecdcf (diff)
parent879e592baf80712ba2e54110ece0e036df892ea0 (diff)
Merge "Build System: Enable python3 compatibility."
Diffstat (limited to 'contrib/scripts/voicemailpwcheck.py')
-rwxr-xr-xcontrib/scripts/voicemailpwcheck.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/scripts/voicemailpwcheck.py b/contrib/scripts/voicemailpwcheck.py
index d7a66d4b9..452255c35 100755
--- a/contrib/scripts/voicemailpwcheck.py
+++ b/contrib/scripts/voicemailpwcheck.py
@@ -46,20 +46,20 @@ mailbox, context, old_pw, new_pw = sys.argv[1:5]
# Enforce a password length of at least 6 characters
if len(new_pw) < REQUIRED_LENGTH:
- print "INVALID: Password is too short (%d) - must be at least %d" % \
- (len(new_pw), REQUIRED_LENGTH)
+ print("INVALID: Password is too short (%d) - must be at least %d" % \
+ (len(new_pw), REQUIRED_LENGTH))
sys.exit(0)
for regex, error in REGEX_BLACKLIST:
if re.search(regex, new_pw):
- print "INVALID: %s" % error
+ print("INVALID: %s" % error)
sys.exit(0)
for pw in PW_BLACKLIST:
if new_pw.find(pw) != -1:
- print "INVALID: %s is forbidden in a password" % pw
+ print("INVALID: %s is forbidden in a password" % pw)
sys.exit(0)
-print "VALID"
+print("VALID")
sys.exit(0)