Source

pypy / lib_pypy / _md5.py

The branch 'stm-gc' does not exist.
Diff from to

File lib_pypy/_md5.py

 
 digest_size = 16
 
-def md5(arg=None):
-    """Same as new().
-
-    For backward compatibility reasons, this is an alternative
-    name for the new() function.
+def new(arg=None):
+    """Return a new md5 crypto object.
+    If arg is present, the method call update(arg) is made.
     """
 
-    return new(arg)
+    crypto = MD5Type()
+    if arg:
+        crypto.update(arg)
+
+    return crypto
+