Author: damoxc
Revision: 5795
Log:
remove the paranthesis from the export deco since they aren't needed
anymore
Diff:
Modified: trunk/deluge/plugins/stats/stats/core.py
===================================================================
--- trunk/deluge/plugins/stats/stats/core.py 2009-10-01 10:35:46 UTC (rev
5794)
+++ trunk/deluge/plugins/stats/stats/core.py 2009-10-01 10:36:10 UTC (rev
5795)
@@ -126,7 +126,7 @@
# export:
- @export()
+ @export
def get_stats(self, keys):
stats_dict = {}
for key in keys:
@@ -134,7 +134,7 @@
stats_dict[key] = self.stats[key]
return stats_dict
- @export()
+ @export
def get_totals(self):
result = {}
session_totals = self.get_session_totals()
@@ -142,7 +142,7 @@
result[key] = self.totals[key] + session_totals[key]
return result
- @export()
+ @export
def get_session_totals(self):
status = self.core.session.status()
return {
@@ -152,14 +152,14 @@
"total_payload_download": status.total_payload_download
}
- @export()
+ @export
def set_config(self, config):
"sets the config dictionary"
for key in config.keys():
self.config[key] = config[key]
self.config.save()
- @export()
+ @export
def get_config(self):
"returns the config dictionary"
return self.config.config
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---