From: Terry Jan Reedy Date: Wed, 29 Jan 2014 05:15:59 +0000 (-0500) Subject: Silence deprecation warning in sunau.py X-Git-Tag: v2.7.8~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=162527244412e8bf51f40aaa6c3d9721326c785a;p=python Silence deprecation warning in sunau.py --- diff --git a/Lib/sunau.py b/Lib/sunau.py index 31b280da92..b53044d22b 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -224,7 +224,7 @@ class Au_read: 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):