diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-12-15 06:36:02 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-12-15 06:36:02 +0000 |
commit | 4daa2a098b1090bdf79b2a171cddcc2b45403b16 (patch) | |
tree | 47cc23566c8e8964fe8b10d719362514f43d9a7e | |
parent | 52817498cf58f4ad3f524e821ccf764c5ce1c7be (diff) | |
download | deluge-4daa2a098b1090bdf79b2a171cddcc2b45403b16.tar.gz deluge-4daa2a098b1090bdf79b2a171cddcc2b45403b16.tar.bz2 deluge-4daa2a098b1090bdf79b2a171cddcc2b45403b16.zip |
Fix #1099 use triple quotes on docstrings
-rw-r--r-- | deluge/plugins/label/label/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index 52017670f..dfc7b2810 100644 --- a/deluge/plugins/label/label/core.py +++ b/deluge/plugins/label/label/core.py @@ -146,7 +146,7 @@ class Core(CorePluginBase): ## Utils ## def clean_config(self): - "remove invalid data from config-file" + """remove invalid data from config-file""" for torrent_id, label_id in list(self.torrent_labels.iteritems()): if (not label_id in self.labels) or (not torrent_id in self.torrents): log.debug("label: rm %s:%s" % (torrent_id,label_id)) @@ -191,7 +191,7 @@ class Core(CorePluginBase): @export def remove(self, label_id): - "remove a label" + """remove a label""" CheckInput(label_id in self.labels, _("Unknown Label")) del self.labels[label_id] self.clean_config() @@ -226,7 +226,7 @@ class Core(CorePluginBase): ) def _has_auto_match(self, torrent ,label_options): - "match for auto_add fields" + """match for auto_add fields""" for tracker_match in label_options["auto_add_trackers"]: for tracker in torrent.trackers: if tracker_match in tracker["url"]: @@ -299,7 +299,7 @@ class Core(CorePluginBase): @export() def get_config(self): - "see : label_set_config" + """see : label_set_config""" return dict((key, self.config[key]) for key in CORE_OPTIONS if key in self.config.config) @export() |