Skip to content

Commit 75bc532

Browse files
committed
Python: Avoid toString usage :O
1 parent 866e615 commit 75bc532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private module Libtaxii {
2525
private class ParseCall extends HTTP::Client::Request::Range, DataFlow::CallCfgNode {
2626
ParseCall() {
2727
this = API::moduleImport("libtaxii").getMember("common").getMember("parse").getACall() and
28-
this.getArgByName("allow_url").asExpr().toString() = "True"
28+
this.getArgByName("allow_url").getALocalSource().asExpr() = any(True t)
2929
}
3030

3131
override DataFlow::Node getAUrlPart() { result in [this.getArg(0), this.getArgByName("s")] }

0 commit comments

Comments
 (0)