Small code refactoring
This commit is contained in:
parent
0805cfeb61
commit
b7373a4982
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ class DownloadUtils():
|
||||||
connectionAttempts = 2
|
connectionAttempts = 2
|
||||||
# How many 401 returns before declaring unauthorized?
|
# How many 401 returns before declaring unauthorized?
|
||||||
unauthorizedAttempts = 2
|
unauthorizedAttempts = 2
|
||||||
|
# How long should we wait for an answer from the
|
||||||
|
timeout = 30.0
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__dict__ = self._shared_state
|
self.__dict__ = self._shared_state
|
||||||
# Requests session
|
|
||||||
self.timeout = 30.0
|
|
||||||
|
|
||||||
def setUsername(self, username):
|
def setUsername(self, username):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue