Fix name of seq_to_bytes
@@ -107,7 +107,7 @@ def mycallersname():
return funname
-def seqtobytes(s):
+def seq_to_bytes(s):
"""Convert a sequence of integers to a *bytes* instance. Good for
plastering over Python 2 / Python 3 cracks.
"""
@@ -421,7 +421,7 @@ class Test(unittest.TestCase):
r = png.Reader(bytes=pngsuite.basn0g02)
x, y, pixel, meta = r.read_flat()
- d = hashlib.md5(seqtobytes(pixel)).hexdigest()
+ d = hashlib.md5(seq_to_bytes(pixel)).hexdigest()
self.assertEqual(d, '255cd971ab8cd9e7275ff906e5041aa0')
def test_no_phys_chunk(self):
