[Python-checkins] r75413 - python/trunk/Lib/sndhdr.py
antoine.pitrou
python-checkins at python.org
Wed Oct 14 20:31:05 CEST 2009
Author: antoine.pitrou
Date: Wed Oct 14 20:31:05 2009
New Revision: 75413
Log:
Fix a py3k warning in the sndhdr module (found with test_email)
Modified:
python/trunk/Lib/sndhdr.py
Modified: python/trunk/Lib/sndhdr.py
==============================================================================
--- python/trunk/Lib/sndhdr.py (original)
+++ python/trunk/Lib/sndhdr.py Wed Oct 14 20:31:05 2009
@@ -100,7 +100,7 @@
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 @@
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)
More information about the Python-checkins
mailing list