Author: andar
Revision: 6031
Log:
Fix #1099 use triple quotes on docstrings
Diff:
Modified: branches/1.2_RC/deluge/plugins/label/label/core.py
===================================================================
--- branches/1.2_RC/deluge/plugins/label/label/core.py 2009-12-14 23:25:03 UTC
(rev 6030)
+++ branches/1.2_RC/deluge/plugins/label/label/core.py 2009-12-15 06:36:02 UTC
(rev 6031)
@@ -146,7 +146,7 @@
## 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 @@
@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 @@
)
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 @@
@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()
Modified: trunk/deluge/plugins/label/label/core.py
===================================================================
--- trunk/deluge/plugins/label/label/core.py 2009-12-14 23:25:03 UTC (rev
6030)
+++ trunk/deluge/plugins/label/label/core.py 2009-12-15 06:36:02 UTC (rev
6031)
@@ -146,7 +146,7 @@
## 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 @@
@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 @@
)
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 @@
@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()
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.