uranusjr commented on code in PR #33626:
URL: https://github.com/apache/airflow/pull/33626#discussion_r1302424775
##########
dev/perf/sql_queries.py:
##########
@@ -145,7 +145,7 @@ def make_report() -> list[Query]:
for query in raw_queries:
time, info, stack, sql = query.replace("@SQLALCHEMY ", "").split("|$")
func, file, loc = info.split(":")
- file_name = file.rpartition("/")[-1] if "/" in file else file
+ file_name = file.rpartition("/")[-1]
Review Comment:
```suggestion
file_name = file.rsplit("/", 1)[-1]
```
A bit easier to understand? Probably not much difference so mostly just
personal preference.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]