--- a/eric6/Utilities/__init__.py Wed Jun 17 17:12:21 2020 +0200 +++ b/eric6/Utilities/__init__.py Wed Jun 17 20:18:54 2020 +0200 @@ -16,7 +16,7 @@ import glob import getpass import ctypes -import subprocess +import subprocess # secok def __showwarning(message, category, filename, lineno, file=None, line=""): @@ -140,8 +140,8 @@ for coding in codingBytes_regexps: coding_re = coding[1] head = lines[:coding[0]] - for l in head: - m = coding_re.search(l) + for line in head: + m = coding_re.search(line) if m: return str(m.group(1), "ascii").lower() return None @@ -158,8 +158,8 @@ for coding in coding_regexps: coding_re = coding[1] head = lines[:coding[0]] - for l in head: - m = coding_re.search(l) + for line in head: + m = coding_re.search(line) if m: return m.group(1).lower() return None @@ -1328,8 +1328,9 @@ # we are on a Linux or macOS platform for mountCommand in ["mount", "/sbin/mount", "/usr/sbin/mount"]: try: - mountOutput = (subprocess.check_output(mountCommand) - .splitlines()) + mountOutput = ( + subprocess.check_output(mountCommand).splitlines() # secok + ) mountedVolumes = [x.split()[2] for x in mountOutput] for volume in mountedVolumes: if volume.decode("utf-8").endswith(volumeName): @@ -1834,8 +1835,6 @@ @return the PySide/PySide2 tool path with extension @rtype str """ - assert variant in ("1", "2") - if isWindowsPlatform(): pysideInterpreters = checkPyside(variant) interpreterIndex = sys.version_info[0] - 2 @@ -1895,8 +1894,6 @@ Python2 and PySide/PySide2 for Python3 @rtype tuple of (bool, bool) """ - assert variant in ("1", "2") - pysideInformation = [] for venvNameKey in ["Python2VirtualEnv", "Python3VirtualEnv"]: venvName = Preferences.getDebugger(venvNameKey)