Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2007-12-12 18:39:55 (GMT)
committer C. Scott Ananian <cscott@laptop.org>2007-12-12 18:39:55 (GMT)
commitc47fd0ab3e77d2f819bfcccdb0971861d4f411bb (patch)
treeaa31b3427ae7374d4304bf4792cdb9f01261b9b8 /library
parent28b9e3f98c07d72b2208a385e347fcbb117a7926 (diff)
Fix cjb's 'disable suspend' patch.
Diffstat (limited to 'library')
-rw-r--r--library/pippy/game.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/pippy/game.py b/library/pippy/game.py
index 73bc5ca..c6a96b9 100644
--- a/library/pippy/game.py
+++ b/library/pippy/game.py
@@ -32,10 +32,11 @@ def pause():
pygame.display.flip()
# SUSPEND
- # try:
- # open('/sys/power/state','w').write('mem')
- # except: # XXX: couldn't suspend (no permissions?)
- # pygame.event.post(pygame.event.wait())
+ try:
+ raise RuntimeError() # XXX don't try this yet. we should use ohm.
+ open('/sys/power/state','w').write('mem')
+ except: # couldn't suspend (no permissions?)
+ pygame.event.post(pygame.event.wait())
pygame.display.set_caption(caption, icon_caption)
screen.blit(old_screen, (0,0))