Skip to content

Commit

Permalink
Pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsemet committed Dec 29, 2015
1 parent 1097e99 commit 284b383
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src-gtk3/guake/simplegladeapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def bindtextdomain(app_name, locale_dir=None):
gettext.bindtextdomain(app_name, locale_dir)
gettext.textdomain(app_name)
gettext.install(app_name, locale_dir, unicode=1)
except (IOError, locale.Error), e:
except (IOError, locale.Error) as e:
print("Warning", app_name, e)
__builtins__.__dict__["_"] = lambda x: x

Expand Down
2 changes: 1 addition & 1 deletion src/guake/gconfhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def load_accelerators(self):
if key > 0:
self.accel_group.connect_group(key, mask, gtk.ACCEL_VISIBLE,
self.guake.accel_decrease_transparency)

key, mask = gtk.accelerator_parse(gets('toggle_transparency'))
if key > 0:
self.accel_group.connect_group(key, mask, gtk.ACCEL_VISIBLE,
Expand Down
2 changes: 1 addition & 1 deletion src/guake/gtk-theme-swatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def draw(self):

# self.draw_rect(x, y, s, s, color)
self.draw_round_rect(x, y, s, s, color)
print "[%7s,%11s]" % (name, self.STYLE_STATES[state]),
print "[%7s,%11s]" % (name, self.STYLE_STATES[state])

x += g + s

Expand Down
8 changes: 4 additions & 4 deletions src/guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ def composited_changed(screen):

# holds the timestamp of the previous show/hide action
self.prev_showhide_time = 0

# holds transparency level
self.transparency = 0

# Controls the transparency state needed for function accel_toggle_transparency
self.transparency_toggled = False

Expand Down Expand Up @@ -1138,7 +1138,7 @@ def accel_decrease_transparency(self, *args):
return True
self.client.set_int(KEY('/style/background/transparency'), int(transparency) - 2)
return True

def accel_toggle_transparency(self, *args):
"""Callback to toggle transparency.
"""
Expand All @@ -1150,7 +1150,7 @@ def accel_toggle_transparency(self, *args):
self.client.set_int(KEY('/style/background/transparency'), MAX_TRANSPARENCY)
self.transparency_toggled = True
return True

def accel_add(self, *args):
"""Callback to add a new tab. Called by the accel key.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/guake/simplegladeapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def bindtextdomain(app_name, locale_dir=None):
gtk.glade.bindtextdomain(app_name, locale_dir)
gtk.glade.textdomain(app_name)
gettext.install(app_name, locale_dir, unicode=1)
except (IOError, locale.Error), e:
except (IOError, locale.Error) as e:
print("Warning", app_name, e)
__builtins__.__dict__["_"] = lambda x: x

Expand Down

0 comments on commit 284b383

Please sign in to comment.