diff options
author | GammaC0de <nitzo2001@yahoo.com> | 2015-12-27 02:09:56 +0100 |
---|---|---|
committer | GammaC0de <nitzo2001@yahoo.com> | 2015-12-27 02:09:56 +0100 |
commit | 29049ab7b25f96d4f59e4cb7b6773a52bad5576b (patch) | |
tree | f957e7e270ec443cc734b663002bcbd55bb24d64 /module/plugins/internal/Account.py | |
parent | typo (diff) | |
download | pyload-29049ab7b25f96d4f59e4cb7b6773a52bad5576b.tar.xz |
[utils] new function: safe_format()
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r-- | module/plugins/internal/Account.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index e875ecaeb..b02538c68 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -1,19 +1,18 @@ # -*- coding: utf-8 -*- -import copy import random import re import threading import time from module.plugins.internal.Plugin import Plugin, Skip -from module.plugins.internal.utils import compare_time, isiterable, lock, parse_size +from module.plugins.internal.utils import compare_time, isiterable, lock, parse_size, safe_format class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.68" + __version__ = "0.69" __status__ = "stable" __description__ = """Base account plugin""" @@ -238,10 +237,7 @@ class Account(Plugin): self.syncback() - safe_info = copy.copy(self.info) - safe_info['login'] = copy.deepcopy(self.info['login']) #@Note: safe_info['login'] must be deepcopied to leave self.info['login'] without changes - safe_info['login']['password'] = "**********" - self.log_debug("Account info for user `%s`: %s" % (self.user, safe_info)) + self.log_debug("Account info for user `%s`: %s" % (self.user, safe_format(self.info, self.info['login']['password']))) return self.info |