Update docstrings - spelling

This commit is contained in:
Sam Manzi 2015-09-07 14:52:49 +10:00
parent fda3aff955
commit 8fd1fab200
2 changed files with 6 additions and 6 deletions

View File

@ -367,7 +367,7 @@ class ConfigManager(object):
def get(self, key): def get(self, key):
""" """
Get the setting's value. raise an error if an invalid section.setting. Get the setting's value. raise an error if an invalid section.setting.
Key is a sting in the "section.setting" format. Key is a string in the "section.setting" format.
""" """
if "." in key: if "." in key:
section, setting = key.split(".", 1) section, setting = key.split(".", 1)
@ -384,7 +384,7 @@ class ConfigManager(object):
def is_set(self, key): def is_set(self, key):
""" """
Does the setting exist? Returns True if does, False otherwise. Does the setting exist? Returns True if does, False otherwise.
Key is a sting in the "section.setting" format. Key is a string in the "section.setting" format.
""" """
if "." in key: if "." in key:
section, setting = key.split(".", 1) section, setting = key.split(".", 1)
@ -399,7 +399,7 @@ class ConfigManager(object):
def has_default(self, key): def has_default(self, key):
""" """
Does the setting have a default value? Returns True if it does, Does the setting have a default value? Returns True if it does,
False otherwise. Key is a sting in the "section.setting" format. False otherwise. Key is a string in the "section.setting" format.
""" """
if "." in key: if "." in key:
section, setting = key.split(".", 1) section, setting = key.split(".", 1)
@ -414,7 +414,7 @@ class ConfigManager(object):
def get_default(self, key): def get_default(self, key):
""" """
Get the setting's default value. Raises an error if invalid key is Get the setting's default value. Raises an error if invalid key is
give. Key is a sting in the "section.setting" format. give. Key is a string in the "section.setting" format.
""" """
if "." in key: if "." in key:
section, setting = key.split(".", 1) section, setting = key.split(".", 1)

View File

@ -1009,7 +1009,7 @@ class ClipboardListView(object):
tglist.add(tg.atom_drag_type, tg.target_flags, tg.app_id) tglist.add(tg.atom_drag_type, tg.target_flags, tg.app_id)
self._widget.enable_model_drag_dest([], self._widget.enable_model_drag_dest([],
Gdk.DragAction.COPY) Gdk.DragAction.COPY)
#TODO GTK3: wourkaround here for bug https://bugzilla.gnome.org/show_bug.cgi?id=680638 #TODO GTK3: workaround here for bug https://bugzilla.gnome.org/show_bug.cgi?id=680638
self._widget.drag_dest_set_target_list(tglist) self._widget.drag_dest_set_target_list(tglist)
#self._widget.drag_dest_set(Gtk.DestDefaults.ALL, targ_data, #self._widget.drag_dest_set(Gtk.DestDefaults.ALL, targ_data,
# Gdk.DragAction.COPY) # Gdk.DragAction.COPY)
@ -1188,7 +1188,7 @@ class ClipboardListView(object):
o = model.get_value(node,1) o = model.get_value(node,1)
targets += [target.target_data_atom() for target in o.__class__.DROP_TARGETS] targets += [target.target_data_atom() for target in o.__class__.DROP_TARGETS]
#TODO GTK3: wourkaround here for bug https://bugzilla.gnome.org/show_bug.cgi?id=680638 #TODO GTK3: workaround here for bug https://bugzilla.gnome.org/show_bug.cgi?id=680638
self._widget.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self._widget.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK,
[], [],
Gdk.DragAction.COPY | Gdk.DragAction.MOVE) Gdk.DragAction.COPY | Gdk.DragAction.MOVE)