Skip to content

Commit 05765c4

Browse files
committed
Formatting
1 parent 5d12f7b commit 05765c4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ module Bottle {
2424

2525
/** Provides models for the `bottle` module. */
2626
module BottleModule {
27+
/**
28+
* Provides models for Bottle applications.
29+
*/
2730
module App {
31+
/** Gets class `bottle.Bottle`) */
2832
API::Node cls() { result = API::moduleImport("bottle").getMember("Bottle") }
2933

30-
/** Gets a reference to a FastAPI application (an instance of `fastapi.FastAPI`). */
34+
/** Gets a reference to a Bottle application (an instance of `bottle.Bottle`) */
3135
API::Node instance() { result = cls().getReturn() }
3236

37+
/** Gets a reference to a Bottle application (an instance of `bottle.app`) */
3338
API::Node app() { result = bottle().getMember("app").getReturn() }
3439
}
3540

@@ -71,6 +76,7 @@ module Bottle {
7176
/** Gets a reference to the `bottle.response` module. */
7277
API::Node response() { result = bottle().getMember("response") }
7378

79+
/** A response returned by a view callable. */
7480
class BottleReturnResponse extends Http::Server::HttpResponse::Range {
7581
BottleReturnResponse() {
7682
this.asCfgNode() = any(View::ViewCallable vc).getAReturnValueFlowNode()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import experimental.meta.InlineTaintTest
2-
import MakeInlineTaintTest<TestTaintTrackingConfig>
2+
import MakeInlineTaintTest<TestTaintTrackingConfig>

0 commit comments

Comments
 (0)