Drop support for retired Python 3.5

Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
This commit is contained in:
Nicola Soranzo
2020-10-07 11:52:13 +01:00
parent 57d6a3857d
commit 9d74bba7fb
622 changed files with 1918 additions and 2175 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ except ImportError:
def handle_timeout(signum, stack):
raise IOError("Timed out reading input")
raise OSError("Timed out reading input")
# set timeout so we don't block on reading stdin
@@ -32,10 +32,10 @@ signal.alarm(0)
p_auth = pam.pam()
authenticated = p_auth.authenticate(pam_username, pam_password, service=pam_service)
if authenticated:
log.debug('PAM auth helper: authentication successful for {}'.format(pam_username))
log.debug(f'PAM auth helper: authentication successful for {pam_username}')
sys.stdout.write('True\n')
sys.exit(0)
else:
log.debug('PAM auth helper: authentication failed for {}'.format(pam_username))
log.debug(f'PAM auth helper: authentication failed for {pam_username}')
sys.stdout.write('False\n')
sys.exit(1)