Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe7a927

Browse files
authored
Merge pull request #30898 from hugovk/fix-os-path-commonprefix-deprecation
Fix `os.path.commonprefix` deprecation
2 parents 40a1b02 + 3b22285 commit fe7a927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/c_coverage/c_coverage_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_file(self, path):
8484
if self.prefix is None:
8585
self.prefix = path
8686
else:
87-
self.prefix = os.path.commonprefix([self.prefix, path])
87+
self.prefix = os.path.commonpath([self.prefix, path])
8888
return self.files[path]
8989

9090
def clean_path(self, path):

0 commit comments

Comments
 (0)