Skip to content

Commit

Permalink
fix for python 2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 13, 2017
1 parent 9e8e482 commit e640cb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clam/common/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ def username(self, **kwargs):
raise KeyError

class MultiAuth(object):
def __init__(self, main_auth, *args,printdebug=False):
def __init__(self, main_auth, *args,**kwargs):
self.main_auth = main_auth
self.additional_auth = args
if printdebug:
self.printdebug = printdebug
if 'printdebug' in kwargs:
self.printdebug = kwargs['printdebug']
else:
self.printdebug = lambda x: print(x,file=sys.stderr)
self.printdebug("Initialized multiple authenticators: " + repr(self.main_auth) + "," + repr(self.additional_auth))
Expand Down

0 comments on commit e640cb1

Please sign in to comment.