Skip to content

Commit b5925f3

Browse files
committed
qml: auth.py formatting
1 parent 540d084 commit b5925f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

electrum/gui/qml/auth.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from electrum.logging import get_logger
66

7+
78
def auth_protect(func=None, reject=None, method='pin', message=''):
89
if func is None:
910
return partial(auth_protect, reject=reject, method=method, message=message)
@@ -20,6 +21,7 @@ def wrapper(self, *args, **kwargs):
2021

2122
return wrapper
2223

24+
2325
class AuthMixin:
2426
_auth_logger = get_logger(__name__)
2527
authRequired = pyqtSignal([str, str], arguments=['method', 'authMessage'])
@@ -30,7 +32,7 @@ def authProceed(self, password=None):
3032
self._auth_logger.debug('Proceeding with authed fn()')
3133
try:
3234
self._auth_logger.debug(str(getattr(self, '__auth_fcall')))
33-
(func,args,kwargs,reject) = getattr(self, '__auth_fcall')
35+
(func, args, kwargs, reject) = getattr(self, '__auth_fcall')
3436
if password and 'password' in func.__code__.co_varnames:
3537
r = func(self, *args, **dict(kwargs, password=password))
3638
else:
@@ -40,7 +42,7 @@ def authProceed(self, password=None):
4042
self._auth_logger.error(f'Error executing wrapped fn(): {repr(e)}')
4143
raise e
4244
finally:
43-
delattr(self,'__auth_fcall')
45+
delattr(self, '__auth_fcall')
4446

4547
@pyqtSlot()
4648
def authCancel(self):

0 commit comments

Comments
 (0)