Mercurial > nagslang
diff nagslang/sound.py @ 689:45d2a6aef3a4
Some flake8 fixes
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Tue, 10 Sep 2019 16:30:20 +0200 |
parents | 59d28ed05f7c |
children |
line wrap: on
line diff
--- a/nagslang/sound.py Wed Sep 11 16:35:53 2013 +0200 +++ b/nagslang/sound.py Tue Sep 10 16:30:20 2019 +0200 @@ -1,5 +1,7 @@ """Sound utilities.""" +from __future__ import print_function + from pygame import mixer from nagslang.options import options @@ -83,8 +85,8 @@ pyg_sound = PygameSound() pyg_sound.init() self._sound = pyg_sound - except Exception, err: - print "Failed to enable sound: %r" % (err,) + except Exception as err: + print("Failed to enable sound: %r" % (err,)) def __getattr__(self, name): return getattr(self._sound, name)