summaryrefslogtreecommitdiffstats
path: root/Lib/sndhdr.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-10-14 18:31:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-10-14 18:31:05 (GMT)
commit8d6c9eeef7ac244ece76eb349dfc5e72911533d2 (patch)
treeac66477dbdbcca1964e34bd5273d58433b6fa7d5 /Lib/sndhdr.py
parentdaa524a29358e1cb762ab0e11a544a60f26f1b0e (diff)
downloadcpython-8d6c9eeef7ac244ece76eb349dfc5e72911533d2.zip
cpython-8d6c9eeef7ac244ece76eb349dfc5e72911533d2.tar.gz
cpython-8d6c9eeef7ac244ece76eb349dfc5e72911533d2.tar.bz2
Fix a py3k warning in the sndhdr module (found with test_email)
Diffstat (limited to 'Lib/sndhdr.py')
-rw-r--r--Lib/sndhdr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py
index df2ccf1..cc2d6b8 100644
--- a/Lib/sndhdr.py
+++ b/Lib/sndhdr.py
@@ -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)