Dusty Phillips avatar Dusty Phillips committed 0a27e18

digestsize is no longer needed in python 3

Comments (0)

Files changed (4)

pypy/module/_hashlib/interp_hashlib.py

     hexdigest=interp2app(W_Hash.hexdigest),
     #
     digest_size=GetSetProperty(W_Hash.get_digest_size),
-    digestsize=GetSetProperty(W_Hash.get_digest_size),
     block_size=GetSetProperty(W_Hash.get_block_size),
     )
 W_Hash.acceptable_as_base_class = False

pypy/module/_hashlib/test/test_hashlib.py

                                     }.items():
             h = hashlib.new(name)
             assert h.digest_size == expected_size
-            assert h.digestsize == expected_size
             #
             h.update(b'abc')
             h2 = h.copy()
             py_new = getattr(hashlib, '__get_builtin_constructor')
             h = py_new(name)('')
             assert h.digest_size == expected_size
-            assert h.digestsize == expected_size
             #
             h.update('abc')
             h2 = h.copy()

pypy/module/_md5/interp_md5.py

     hexdigest = interp2app(W_MD5.hexdigest_w),
     copy      = interp2app(W_MD5.copy_w),
     digest_size = 16,
-    digestsize = 16,
     block_size = 64,
     __doc__   = """md5(arg) -> return new md5 object.
 

pypy/module/_md5/test/test_md5.py

         """
         md5.digest_size should be 16.
         """
-        import sys
         assert self.md5.md5().digest_size == 16
-        if sys.version_info >= (2, 5):
-            assert self.md5.blocksize == 1
-            assert self.md5.md5().digestsize == 16
 
 
     def test_MD5Type(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.