Skip to content

Commit 6efb3c6

Browse files
committed
QLformatting
1 parent bd2564e commit 6efb3c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python/ql/lib/semmle/python/frameworks/Bottle.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ module Bottle {
8484
}
8585
}
8686

87-
module Header {
88-
API::Node instance() { result = bottle().getMember("response").getMember("headers") }
87+
/** Provides models for the `bottle.headers` module */
88+
module Headers {
89+
/** Gets a reference to the `bottle.headers` module. */
90+
API::Node headers() { result = bottle().getMember("response").getMember("headers") }
8991

9092
/** A dict-like write to a response header. */
9193
class HeaderWriteSubscript extends Http::Server::ResponseHeaderWrite::Range, DataFlow::Node {
@@ -94,7 +96,7 @@ module Bottle {
9496

9597
HeaderWriteSubscript() {
9698
exists(API::Node holder |
97-
holder = instance() and
99+
holder = headers() and
98100
this = holder.asSource() and
99101
value = holder.getSubscriptAt(name)
100102
)

0 commit comments

Comments
 (0)