Mercurial > pyntnclick
changeset 800:374d96e0b55e pyntnclick
pep8/pyflakes fixes.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 27 Jan 2013 13:42:58 +0200 |
parents | a04a876ee369 |
children | cc284445181b |
files | gamelib/scenes/bridge.py gamelib/scenes/cryo.py gamelib/scenes/mess.py pyntnclick/engine.py |
diffstat | 4 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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]
--- 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.")
--- 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")
--- 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()