Skip to content

Commit 877ae68

Browse files
authored
Merge pull request #123 from gtmanfred/develop
fix locals context
2 parents bdbd79a + 72b0c55 commit 877ae68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pepper/libpepper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,14 @@ def login(self, username=None, password=None, eauth=None, **kwargs):
447447
authentication token or an empty dict
448448
449449
'''
450+
local = locals()
450451
kwargs.update(
451452
dict(
452-
(key, locals()[key]) for key in (
453+
(key, local[key]) for key in (
453454
'username',
454455
'password',
455456
'eauth'
456-
) if locals().get(key, None) is not None
457+
) if local.get(key, None) is not None
457458
)
458459
)
459460
self.auth = self._send_auth('/login', **kwargs).get('return', [{}])[0]

0 commit comments

Comments
 (0)