diff options
Diffstat (limited to 'caribou')
-rw-r--r-- | caribou/antler/window.py | 4 | ||||
-rw-r--r-- | caribou/settings/settings_manager.py | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/caribou/antler/window.py b/caribou/antler/window.py index 959b825..0061040 100644 --- a/caribou/antler/window.py +++ b/caribou/antler/window.py @@ -54,7 +54,7 @@ class AnimatedWindowBase(Gtk.Window, Clutter.Animatable): elif property.name == "antler-window-y": return self.get_position()[1] else: - raise AttributeError, 'unknown property %s' % property.name + raise AttributeError('unknown property %s' % property.name) def do_set_property(self, property, value): if property.name == "antler-window-x": @@ -64,7 +64,7 @@ class AnimatedWindowBase(Gtk.Window, Clutter.Animatable): if value is not None: self.move(self.get_position()[0], value) else: - raise AttributeError, 'unknown property %s' % property.name + raise AttributeError('unknown property %s' % property.name) def do_animate_property(self, animation, prop_name, initial_value, final_value, progress, gvalue): diff --git a/caribou/settings/settings_manager.py b/caribou/settings/settings_manager.py index 4e9b43f..062a278 100644 --- a/caribou/settings/settings_manager.py +++ b/caribou/settings/settings_manager.py @@ -16,12 +16,11 @@ class SettingsManager(object): try: return self._settings_map[name] except KeyError: - raise AttributeError, "no setting named '%s'" % name + raise AttributeError("no setting named '%s'" % name) def _map_settings(self, setting): if self._settings_map.has_key(setting.name): - raise ValueError, \ - "more than one setting has the name '%s'" % setting.name + raise ValueError("more than one setting has the name '%s'" % setting.name) self._settings_map[setting.name] = setting for s in setting: |