mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Code cleanup
* Streamline variable assignment * Replace assignment with augmented assignment * Remove unused variables and redundant parentheses
This commit is contained in:
parent
47c585d81c
commit
94e8a45c62
11 changed files with 39 additions and 58 deletions
|
@ -23,7 +23,6 @@ class DelugeClient(object):
|
|||
self._request_counter = 0
|
||||
|
||||
def _get_local_auth(self):
|
||||
auth_file = ""
|
||||
username = password = ""
|
||||
if platform.system() in ('Windows', 'Microsoft'):
|
||||
appDataPath = os.environ.get("APPDATA")
|
||||
|
@ -62,9 +61,9 @@ class DelugeClient(object):
|
|||
continue
|
||||
|
||||
if username == "localclient":
|
||||
return (username, password)
|
||||
return username, password
|
||||
|
||||
return ("", "")
|
||||
return "", ""
|
||||
|
||||
def _create_module_method(self, module, method):
|
||||
fullname = "{0}.{1}".format(module, method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue