changeset 532:02cf5537d74e

PEP-8 main.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 11 Feb 2012 11:59:21 +0200
parents 60c345d19daf
children 42742a62f9c3
files gamelib/main.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/main.py	Sat Feb 11 12:00:19 2012 +0200
+++ b/gamelib/main.py	Sat Feb 11 11:59:21 2012 +0200
@@ -19,11 +19,13 @@
 from menu import MenuScreen
 from gamescreen import GameScreen
 from endscreen import EndScreen
-from constants import SCREEN, FRAME_RATE, FREQ, BITSIZE, CHANNELS, BUFFER, DEBUG
+from constants import (
+    SCREEN, FRAME_RATE, FREQ, BITSIZE, CHANNELS, BUFFER, DEBUG)
 from sound import no_sound, disable_sound
 import state
 import data
 
+
 def parse_args(args):
     parser = OptionParser()
     parser.add_option("--no-sound", action="store_false", default=True,
@@ -46,6 +48,7 @@
         self.set_timer(FRAME_RATE)
         self.show_screen(self.menu_screen)
 
+
 def main():
     opts = parse_args(sys.argv)
     pygame.display.init()
@@ -63,7 +66,7 @@
             # debug the specified scene
             state.DEBUG_SCENE = opts.scene
         state.DEBUG_RECTS = opts.rects
-    display =  pygame.display.set_mode(SCREEN, SWSURFACE)
+    display = pygame.display.set_mode(SCREEN, SWSURFACE)
     pygame.display.set_icon(pygame.image.load(
         data.filepath('icons/suspended_sentence24x24.png')))
     pygame.display.set_caption("Suspended Sentence")
@@ -72,4 +75,3 @@
         shell.run()
     except KeyboardInterrupt:
         pass
-