src/eric7/DebugClients/Python/coverage/files.py

branch
eric7
changeset 9252
32dd11232e06
parent 9209
b99e7fd55fd3
child 9374
ed79209469ad
diff -r e0f98cc25bf5 -r 32dd11232e06 src/eric7/DebugClients/Python/coverage/files.py
--- a/src/eric7/DebugClients/Python/coverage/files.py	Wed Jul 20 16:03:55 2022 +0200
+++ b/src/eric7/DebugClients/Python/coverage/files.py	Wed Jul 20 16:13:29 2022 +0200
@@ -270,7 +270,7 @@
     """Find the path separator used in this string, or os.sep if none."""
     sep_match = re.search(r"[\\/]", s)
     if sep_match:
-        the_sep = sep_match.group(0)
+        the_sep = sep_match[0]
     else:
         the_sep = os.sep
     return the_sep
@@ -387,7 +387,7 @@
         for regex, result in self.aliases:
             m = regex.match(path)
             if m:
-                new = path.replace(m.group(0), result)
+                new = path.replace(m[0], result)
                 new = new.replace(sep(path), sep(result))
                 if not self.relative:
                     new = canonical_filename(new)

eric ide

mercurial