diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-26 15:30:29 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-26 15:30:29 +0100 |
commit | a1a837d1a39675d94ae26b3b65188f27c88c9c40 (patch) | |
tree | 4adca69e7f72bb92759162d624b3d48dfa7421fd /module | |
parent | Merge pull request #2150 from GammaC0de/patch-11 (diff) | |
download | pyload-a1a837d1a39675d94ae26b3b65188f27c88c9c40.tar.xz |
[Account] fix copy.deepcopy usage
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Account.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index fcfe7e0b7..a27e892cf 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -8,12 +8,12 @@ import time from module.plugins.internal.Plugin import Plugin, Skip from module.plugins.internal.utils import compare_time, isiterable, lock, parse_size - +d class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.66" + __version__ = "0.67" __status__ = "stable" __description__ = """Base account plugin""" @@ -238,7 +238,8 @@ class Account(Plugin): self.syncback() - safe_info = copy.deepcopy(self.info) + 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)) |