# HG changeset patch # User Jeremy Thurgood # Date 1359286978 -7200 # Node ID 374d96e0b55ea9eade3b80133e46e0cde10c8d08 # Parent a04a876ee3691879a8182b22c0b9357eae9691d3 pep8/pyflakes fixes. diff -r a04a876ee369 -r 374d96e0b55e gamelib/scenes/bridge.py --- a/gamelib/scenes/bridge.py Sun Jan 27 13:38:56 2013 +0200 +++ b/gamelib/scenes/bridge.py Sun Jan 27 13:42:58 2013 +0200 @@ -652,12 +652,12 @@ ypos += (self._alert_messages['engine offline'].get_size()[1] + self.ALERT_SPACING) if (self.game.scenes['mess'].get_data('life support status') - == 'broken'): + == 'broken'): surface.blit(self._alert_messages['life support'], (xpos, ypos)) ypos += (self._alert_messages['life support'].get_size()[1] + self.ALERT_SPACING) if (self.game.scenes['mess'].get_data('life support status') - == 'replaced'): + == 'replaced'): surface.blit(self._alert_messages['life support partial'], (xpos, ypos)) ypos += (self._alert_messages['life support partial'].get_size()[1] diff -r a04a876ee369 -r 374d96e0b55e gamelib/scenes/cryo.py --- a/gamelib/scenes/cryo.py Sun Jan 27 13:38:56 2013 +0200 +++ b/gamelib/scenes/cryo.py Sun Jan 27 13:42:58 2013 +0200 @@ -177,7 +177,7 @@ responses.append(make_jim_dialog( _("Prisoner %s. Vandalism is an offence punishable by a " "minimum of an additional 6 months to your sentence." - ) % PLAYER_ID, self.game)) + ) % PLAYER_ID, self.game)) return responses def is_interactive(self, tool=None): @@ -216,8 +216,8 @@ return True def interact_without(self): - return Result(_("These pipes aren't attached to the wall very solidly." - )) + return Result( + _("These pipes aren't attached to the wall very solidly.")) def get_description(self): return _("These pipes carry cooling fluid to the working cryo units.") @@ -455,8 +455,8 @@ INITIAL = "plaque" def interact_without(self): - return Result(_("The plaque is welded to the unit. You can't shift it." - )) + return Result( + _("The plaque is welded to the unit. You can't shift it.")) def get_description(self): return _("'Prisoner 98CC-764E646391EE. War crimes. 45 years.") diff -r a04a876ee369 -r 374d96e0b55e gamelib/scenes/mess.py --- a/gamelib/scenes/mess.py Sun Jan 27 13:38:56 2013 +0200 +++ b/gamelib/scenes/mess.py Sun Jan 27 13:42:58 2013 +0200 @@ -222,8 +222,8 @@ if self.get_data("status") == "broken": return Result(_("It would get lost in the fronds.")) elif self.get_data("status") == 'fixed': - return Result(_("There's quite enough tape on the ducting already." - )) + return Result( + _("There's quite enough tape on the ducting already.")) else: self.set_data("fixed", True) self.set_data("status", "fixed") diff -r a04a876ee369 -r 374d96e0b55e pyntnclick/engine.py --- a/pyntnclick/engine.py Sun Jan 27 13:38:56 2013 +0200 +++ b/pyntnclick/engine.py Sun Jan 27 13:42:58 2013 +0200 @@ -69,7 +69,7 @@ self.surface_size = gd.constants.screen self.surface = None - self.container = Container(pygame.Rect((0, 0), self.surface_size), + self.container = Container(pygame.Rect((0, 0), self.surface_size), self.gd) self.setup()