[Python-checkins] cpython (2.7): Silence deprecation warning in sunau.py

terry.reedy python-checkins at python.org
Wed Jan 29 06:16:19 CET 2014


http://hg.python.org/cpython/rev/cbf5d415212a
changeset: 88804:cbf5d415212a
branch: 2.7
parent: 88801:d45436cb8870
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Wed Jan 29 00:15:59 2014 -0500
summary:
 Silence deprecation warning in sunau.py
files:
 Lib/sunau.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/sunau.py b/Lib/sunau.py
--- a/Lib/sunau.py
+++ b/Lib/sunau.py
@@ -224,7 +224,7 @@
 if self._data_size == AUDIO_UNKNOWN_SIZE:
 return AUDIO_UNKNOWN_SIZE
 if self._encoding in _simple_encodings:
- return self._data_size / self._framesize
+ return self._data_size // self._framesize
 return 0 # XXX--must do some arithmetic here
 
 def getcomptype(self):
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /