Skip to content

Commit 3a8fd91

Browse files
committed
python: do not change autogenerated file
1 parent a97bbdd commit 3a8fd91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/lib/semmle/python/AstGenerated.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ class Try_ extends @py_Try, Stmt {
13791379
Stmt getHandler(int index) { result = this.getHandlers().getItem(index) }
13801380

13811381
/** Gets an exception handler of this try statement. */
1382-
ExceptionHandler getAHandler() { result = this.getHandlers().getAnItem() }
1382+
Stmt getAHandler() { result = this.getHandlers().getAnItem() }
13831383

13841384
/** Gets the finally block of this try statement. */
13851385
StmtList getFinalbody() { py_stmt_lists(result, this, 4) }

python/ql/lib/semmle/python/Stmts.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class Try extends Try_ {
422422
result = this.getAnOrelse()
423423
}
424424

425-
override Stmt getHandler(int i) { result = Try_.super.getHandler(i) }
425+
override ExceptionHandler getHandler(int i) { result = Try_.super.getHandler(i) }
426426

427427
/** Gets a normal exception handler, `except`, of this try statement. */
428428
ExceptStmt getANormalHandler() { result = this.getAHandler() }

0 commit comments

Comments
 (0)