diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-12 21:33:58 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-12 21:33:58 +0200 |
commit | f2779197b13fdbbd0d42e48215c51d24d86ee91b (patch) | |
tree | 968267aa9909470c27b43109029e87d1f126b4e7 /display/snd_pygame.py | |
parent | bc2155a93cd15c975881d7ca8f57f0f4b5c4aa27 (diff) |
2to3 of display module
Diffstat (limited to 'display/snd_pygame.py')
-rw-r--r-- | display/snd_pygame.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/display/snd_pygame.py b/display/snd_pygame.py index e1a1455..3193775 100644 --- a/display/snd_pygame.py +++ b/display/snd_pygame.py @@ -1,5 +1,5 @@ import sys -from modes import musichtmloptiontext as htmloptionstext +from .modes import musichtmloptiontext as htmloptionstext from pygame.locals import * import pygame.mixer @@ -16,8 +16,8 @@ class Sound: def __init__(self): try: pygame.mixer.init() - except pygame.error, e: - print >> sys.stderr, "sound disabled: %s" % str(e) + except pygame.error as e: + print("sound disabled: %s" % str(e), file=sys.stderr) else: self.has_sound = 1 try: |