From a1a837d1a39675d94ae26b3b65188f27c88c9c40 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Sat, 26 Dec 2015 16:30:29 +0200 Subject: [Account] fix copy.deepcopy usage --- module/plugins/internal/Account.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module') 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)) -- cgit v1.2.3