--- a/eric6/Preferences/__init__.py Mon Apr 12 19:05:23 2021 +0200 +++ b/eric6/Preferences/__init__.py Mon Apr 12 19:21:40 2021 +0200 @@ -1785,10 +1785,7 @@ return "standard" else: return debugClientType - elif key == "PythonExtensions": - # we don't support Python2 anymore - return "" - elif key == "Python2VirtualEnv": + elif key in ("PythonExtensions", "Python2VirtualEnv"): # we don't support Python2 anymore return "" else: