diff pytouhou/ui/music.py @ 385:d8aab27a2ab2

Add missing imports, and remove side-effects in asserts.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 20 Oct 2012 20:44:11 +0200
parents e0e284fcb288
children b1248bab2d0f
line wrap: on
line diff
--- a/pytouhou/ui/music.py
+++ b/pytouhou/ui/music.py
@@ -71,7 +71,8 @@ class ZwavSource(InfiniteWaveSource):
 
         self._file = file
 
-        assert b'ZWAV' == self._file.read(4)
+        magic = self._file.read(4)
+        assert b'ZWAV' == magic
 
         self.audio_format = AudioFormat(
             channels=format.wChannels,