summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Account.py
diff options
context:
space:
mode:
authorGravatar GammaC0de <nitzo2001@yahoo.com> 2015-12-27 02:09:56 +0100
committerGravatar GammaC0de <nitzo2001@yahoo.com> 2015-12-27 02:09:56 +0100
commit29049ab7b25f96d4f59e4cb7b6773a52bad5576b (patch)
treef957e7e270ec443cc734b663002bcbd55bb24d64 /module/plugins/internal/Account.py
parenttypo (diff)
downloadpyload-29049ab7b25f96d4f59e4cb7b6773a52bad5576b.tar.xz
[utils] new function: safe_format()
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r--module/plugins/internal/Account.py10
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