X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fmd5wrapper.py;h=d428d55586841491926fdace564260768fdb86ef;hb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;hp=1cdac613efd5dad6e160dd490379d9721fd3b70e;hpb=9a523766e02fc3c5d1df4550385a604dca8e6e80;p=m_lib.git diff --git a/m_lib/md5wrapper.py b/m_lib/md5wrapper.py index 1cdac61..d428d55 100755 --- a/m_lib/md5wrapper.py +++ b/m_lib/md5wrapper.py @@ -1,14 +1,15 @@ #! /usr/bin/env python """User wrapper for md5 builtin object""" -__all__ = ['md5wrapper'] - +from __future__ import print_function import sys if sys.version < '2.5': from md5 import md5 else: from hashlib import md5 +__all__ = ['md5wrapper'] + class md5wrapper: def __init__(self, init=None): if init: @@ -44,6 +45,6 @@ class md5wrapper: infile.close() if __name__ == "__main__": - print "This must print exactly the string" - print "Test: 900150983cd24fb0d6963f7d28e17f72" - print "Test:", md5wrapper("abc") + print("This must print exactly the string") + print("Test: 900150983cd24fb0d6963f7d28e17f72") + print("Test:", md5wrapper("abc"))