Mercurial > touhou
comparison pytouhou/lib/sdl.pyx @ 615:d1f0bb0b7a17
Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Mar 2015 21:40:51 +0100 |
parents | 73f134f84c7f |
children | 4ce3ef053a25 |
comparison
equal
deleted
inserted
replaced
614:2cf518129725 | 615:d1f0bb0b7a17 |
---|---|
57 def __init__(self): | 57 def __init__(self): |
58 error = SDL_GetError() | 58 error = SDL_GetError() |
59 Exception.__init__(self, error.decode()) | 59 Exception.__init__(self, error.decode()) |
60 | 60 |
61 | 61 |
62 class SDL(object): | 62 class SDL: |
63 def __init__(self, sound=True): | 63 def __init__(self, sound=True): |
64 self.sound = sound | 64 self.sound = sound |
65 | 65 |
66 def __enter__(self): | 66 def __enter__(self): |
67 global keyboard_state | 67 global keyboard_state |