Python: Remove use of deprecated methods

This commit is contained in:
Rasmus Wriedt Larsen
2020-01-21 11:49:00 +01:00
parent e6425bb4cf
commit 96d5703f2c
22 changed files with 41 additions and 45 deletions

View File

@@ -206,8 +206,8 @@ predicate file_sanity(string clsname, string problem, string what) {
exists(File file, Folder folder |
clsname = file.getAQlClass() and
problem = "has same name as a folder" and
what = file.getName() and
what = folder.getName()
what = file.getAbsolutePath() and
what = folder.getAbsolutePath()
) or
exists(Container f |
clsname = f.getAQlClass() and