diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-01-26 09:43:26 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-01-26 09:43:26 -0800 |
commit | 3b4c88bf604e719ded8d8e71f149d152e52fb2d5 (patch) | |
tree | 719fbf62f3c31360369d2f6f0f921a023e82e14c /wee_slack.py | |
parent | a43d7431b20469fe1a6d8d0a990e6c75f4223398 (diff) | |
download | wee-slack-3b4c88bf604e719ded8d8e71f149d152e52fb2d5.tar.gz |
add str function for debugging
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 42d2e54..2719d14 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2450,6 +2450,9 @@ class PluginConfig(object): w.config_set_plugin(key, default) self.config_changed(None, None, None) + def __str__(self): + return "".join([x + "\t" + str(self.settings[x]) + "\n" for x in self.settings.keys()]) + def config_changed(self, data, key, value): for key in self.settings: self.settings[key] = self.fetch_setting(key) |