Skip to content

Commit 47448d9

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent eaed870 commit 47448d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ql/lib/semmle/python/frameworks/internal/PoorMansFunctionResolution.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ private DataFlow::Node getSimpleMethodReferenceWithinClass(Function func) {
127127
* print(inst.my_method)
128128
* ```
129129
*
130-
* But is able to handle simple method calls within a class, but does not take MRO into
131-
* account.
130+
* But it is able to handle simple method calls within a class (but does not take MRO into
131+
* account).
132132
* ```py
133133
* class MyClass:
134134
* def method1(self);

python/ql/test/library-tests/frameworks/stdlib/wsgiref_simple_server_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def func(environ, start_response): # $ requestHandler
2121
write(b"hello") # $ HttpResponse responseBody=b"hello"
2222
write(data=b" ") # $ HttpResponse responseBody=b" "
2323

24-
# function return value should be an iterable that will also be written to to the
24+
# function return value should be an iterable that will also be written to the
2525
# response.
2626
return [b"world", b"!"] # $ HttpResponse responseBody=List
2727

0 commit comments

Comments
 (0)