Skip to content

Commit 8208aeb

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent 7c758f5 commit 8208aeb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/ql/src/semmle/python/frameworks/Twisted.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private module Twisted {
7979

8080
/**
8181
* A "render" method on a `twisted.web.resource.Resource` subclass, whose return value
82-
* is written as the body fo the HTTP response.
82+
* is written as the body of the HTTP response.
8383
*/
8484
class TwistedResourceRenderMethod extends TwistedResourceRequestHandler {
8585
TwistedResourceRenderMethod() {

python/ql/test/library-tests/frameworks/twisted/response_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def render_GET(self, request: Request): # $ requestHandler
4545

4646

4747
class NonHttpBodyOutput(Resource):
48-
"""Examples of provides values in response that is not in the body
48+
"""Examples of providing values in response that is not in the body
4949
"""
5050
def render_GET(self, request: Request): # $ requestHandler
5151
request.responseHeaders.addRawHeader("key", "value")

python/ql/test/library-tests/frameworks/twisted/taint_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def render_GET(self, request: Request): # $ requestHandler
5757
request.getRequestHostname(), # $ tainted
5858
)
5959

60-
# technically user-controlled, but unlike to lead to vulnerabilities.
60+
# technically user-controlled, but unlikely to lead to vulnerabilities.
6161
ensure_not_tainted(
6262
request.method,
6363
)

0 commit comments

Comments
 (0)