Kaydet (Commit) 8d6c9eee authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Fix a py3k warning in the sndhdr module (found with test_email)

üst daa524a2
...@@ -100,7 +100,7 @@ def test_au(h, f): ...@@ -100,7 +100,7 @@ def test_au(h, f):
else: else:
sample_bits = '?' sample_bits = '?'
frame_size = sample_size * nchannels 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) tests.append(test_au)
...@@ -109,7 +109,7 @@ def test_hcom(h, f): ...@@ -109,7 +109,7 @@ def test_hcom(h, f):
if h[65:69] != 'FSSD' or h[128:132] != 'HCOM': if h[65:69] != 'FSSD' or h[128:132] != 'HCOM':
return None return None
divisor = get_long_be(h[128+16:128+20]) 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) tests.append(test_hcom)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment