예제 #1
0
    def __init__(self, *args, **kwargs):
        """Initialize the Basic Auth handler.

        Args:
            *args (tuple):
                Positional arguments to pass to the parent class.

            **kwargs (dict):
                Keyword arguments to pass to the parent class.
        """
        HTTPBasicAuthHandler.__init__(self, *args, **kwargs)

        self._tried_login = False
        self._otp_token_method = None
        self._otp_token_attempts = 0
        self._last_otp_token = None
예제 #2
0
    def __init__(self, *args, **kwargs):
        """Initialize the Basic Auth handler.

        Args:
            *args (tuple):
                Positional arguments to pass to the parent class.

            **kwargs (dict):
                Keyword arguments to pass to the parent class.
        """
        HTTPBasicAuthHandler.__init__(self, *args, **kwargs)

        self._tried_login = False
        self._otp_token_method = None
        self._otp_token_attempts = 0
        self._last_otp_token = None
예제 #3
0
 def __init__(self, *args, **kwargs):
     HTTPBasicAuthHandler.__init__(self, *args, **kwargs)
     self._retried = False
     self._lasturl = ""
     self._needs_otp_token = False
     self._otp_token_attempts = 0
예제 #4
0
파일: request.py 프로젝트: vlovich/rbtools
 def __init__(self, *args, **kwargs):
     HTTPBasicAuthHandler.__init__(self, *args, **kwargs)
     self._retried = False
     self._lasturl = ""
     self._needs_otp_token = False
     self._otp_token_attempts = 0