From 481e48f49555f57ec70fdaef57acce923b880d81 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Tue, 7 Feb 2017 00:18:57 +0300 Subject: [PATCH] typos fix and todo added --- toxygen/plugins/plugin_super_class.py | 4 ++-- toxygen/toxencryptsave.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/toxygen/plugins/plugin_super_class.py b/toxygen/plugins/plugin_super_class.py index f0cf1b4..b75510b 100644 --- a/toxygen/plugins/plugin_super_class.py +++ b/toxygen/plugins/plugin_super_class.py @@ -31,7 +31,7 @@ def log(name, data): class PluginSuperClass: """ - Superclass for all plugins. Plugin is python module with at least one class derived from PluginSuperClass. + Superclass for all plugins. Plugin is Python3 module with at least one class derived from PluginSuperClass. """ is_plugin = True @@ -169,7 +169,7 @@ class PluginSuperClass: def load_settings(self): """ This method loads settings of plugin and returns raw data - If file doesn't this method raises exception + If file doesn't exist this method raises exception """ with open(path_to_data(self._short_name) + 'settings.json', 'rb') as fl: data = fl.read() diff --git a/toxygen/toxencryptsave.py b/toxygen/toxencryptsave.py index e420ecf..350394c 100644 --- a/toxygen/toxencryptsave.py +++ b/toxygen/toxencryptsave.py @@ -33,6 +33,8 @@ TOX_ERR_DECRYPTION = { TOX_PASS_ENCRYPTION_EXTRA_LENGTH = 80 +# TODO: move logic to separate class + class ToxEncryptSave(util.Singleton):