##// END OF EJS Templates
Shorten identifier name to pass darker checks
Bart Skowron -
Show More
@@ -940,11 +940,11 b' class InteractiveShell(SingletonConfigurable):'
940 p_ver = sys.version_info[:2]
940 p_ver = sys.version_info[:2]
941
941
942 # Predict version from py[thon]-x.x in the $VIRTUAL_ENV
942 # Predict version from py[thon]-x.x in the $VIRTUAL_ENV
943 predicted_p_ver = re.search(r"\bpy(?:thon)?([23])\.(\d+)\b", os.environ["VIRTUAL_ENV"])
943 re_m = re.search(r"\bpy(?:thon)?([23])\.(\d+)\b", os.environ["VIRTUAL_ENV"])
944 if predicted_p_ver:
944 if re_m:
945 predicted_path = Path(str(virtual_env_path).format(*predicted_p_ver.groups()))
945 predicted_path = Path(str(virtual_env_path).format(*re_m.groups()))
946 if predicted_path.exists():
946 if predicted_path.exists():
947 p_ver = predicted_p_ver.groups()
947 p_ver = re_m.groups()
948
948
949 virtual_env = str(virtual_env_path).format(*p_ver)
949 virtual_env = str(virtual_env_path).format(*p_ver)
950
950
General Comments 0
You need to be logged in to leave comments. Login now