X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fmcrypt.py;h=76922a0efe71b521642e84d18055cce890cd7055;hb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;hp=acbead1f3f3426dcf8437597d39730977028302f;hpb=9a523766e02fc3c5d1df4550385a604dca8e6e80;p=m_lib.git diff --git a/m_lib/mcrypt.py b/m_lib/mcrypt.py index acbead1..76922a0 100755 --- a/m_lib/mcrypt.py +++ b/m_lib/mcrypt.py @@ -5,6 +5,7 @@ # +from __future__ import print_function import random, crypt @@ -32,7 +33,7 @@ def test(): pwd_file = open("test.pwd", 'w') pwd_file.write("%s:%s" % ("user", encrypted)) pwd_file.close() - print "Password file written" + print("Password file written") import string pwd_file = open("test.pwd", 'r') @@ -40,9 +41,9 @@ def test(): pwd_file.close() if crypt.crypt(encrypted, encrypted): - print "Password verified Ok" + print("Password verified Ok") else: - print "BAD password" + print("BAD password") if __name__ == "__main__": test()