]> granicus.if.org Git - python/commitdiff
Fix a py3k warning in the sndhdr module (found with test_email)
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 14 Oct 2009 18:31:05 +0000 (18:31 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 14 Oct 2009 18:31:05 +0000 (18:31 +0000)
Lib/sndhdr.py

index df2ccf17ba4b99510329549bf147ac68f65e4fd4..cc2d6b8b197b704782be0c35abecb262ae5c69ae 100644 (file)
@@ -100,7 +100,7 @@ def test_au(h, f):
     else:
         sample_bits = '?'
     frame_size = sample_size * nchannels
-    return type, rate, nchannels, data_size/frame_size, sample_bits
+    return type, rate, nchannels, data_size//frame_size, sample_bits
 
 tests.append(test_au)
 
@@ -109,7 +109,7 @@ def test_hcom(h, f):
     if h[65:69] != 'FSSD' or h[128:132] != 'HCOM':
         return None
     divisor = get_long_be(h[128+16:128+20])
-    return 'hcom', 22050/divisor, 1, -1, 8
+    return 'hcom', 22050//divisor, 1, -1, 8
 
 tests.append(test_hcom)