Skip to content

Commit c670f81

Browse files
committed
Python: Autoformats
1 parent bf92cee commit c670f81

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

python/ql/src/Exceptions/IncorrectExceptOrder.ql

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
import python
1616

1717
predicate incorrect_except_order(ExceptStmt ex1, ClassValue cls1, ExceptStmt ex2, ClassValue cls2) {
18-
exists(int i, int j, Try t |
19-
ex1 = t.getHandler(i) and
20-
ex2 = t.getHandler(j) and i < j and
21-
cls1 = except_class(ex1) and
22-
cls2 = except_class(ex2) and
23-
cls1 = cls2.getASuperType()
24-
)
18+
exists(int i, int j, Try t |
19+
ex1 = t.getHandler(i) and
20+
ex2 = t.getHandler(j) and
21+
i < j and
22+
cls1 = except_class(ex1) and
23+
cls2 = except_class(ex2) and
24+
cls1 = cls2.getASuperType()
25+
)
2526
}
2627

27-
ClassValue except_class(ExceptStmt ex) {
28-
ex.getType().pointsTo(result)
29-
}
28+
ClassValue except_class(ExceptStmt ex) { ex.getType().pointsTo(result) }
3029

3130
from ExceptStmt ex1, ClassValue cls1, ExceptStmt ex2, ClassValue cls2
3231
where incorrect_except_order(ex1, cls1, ex2, cls2)
33-
select ex2, "Except block for $@ is unreachable; the more general $@ for $@ will always be executed in preference.",
34-
cls2, cls2.getName(), ex1, "except block", cls1, cls1.getName()
32+
select ex2,
33+
"Except block for $@ is unreachable; the more general $@ for $@ will always be executed in preference.",
34+
cls2, cls2.getName(), ex1, "except block", cls1, cls1.getName()

0 commit comments

Comments
 (0)