From 1b03b56e6a2f58cacb0f08346df38d71b4775b33 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sun, 9 Jan 2022 14:12:01 -0500 Subject: [PATCH] Improve variable naming --- src/diffuse/vcs/vcs_registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/diffuse/vcs/vcs_registry.py b/src/diffuse/vcs/vcs_registry.py index 380c44a..3b935c2 100644 --- a/src/diffuse/vcs/vcs_registry.py +++ b/src/diffuse/vcs/vcs_registry.py @@ -99,7 +99,7 @@ def _get_darcs_repo(path: str, prefs: Preferences) -> Optional[VcsInterface]: def _get_git_repo(path: str, prefs: Preferences) -> Optional[VcsInterface]: if 'GIT_DIR' in os.environ: try: - ss: List[str] = utils.popenReadLines( + lines: List[str] = utils.popenReadLines( path, [ prefs.getString('git_bin'), @@ -108,12 +108,12 @@ def _get_git_repo(path: str, prefs: Preferences) -> Optional[VcsInterface]: ], prefs, 'git_bash') - if len(ss) > 0: + if len(lines) > 0: # be careful to handle trailing slashes dirs = path.split(os.sep) if dirs[-1] != '': dirs.append('') - ss = utils.strip_eol(ss[0]).split('/') + ss = utils.strip_eol(lines[0]).split('/') if ss[-1] != '': ss.append('') n = len(ss)