Skip to content

Commit 720fbaf

Browse files
authored
Python: Fix test error.
Somehow, having to type "Node" all day long made me turn "json" into "node"... Also removes some bits that weren't needed after all.
1 parent cc48276 commit 720fbaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,8 @@ private module Stdlib {
341341
// ---------------------------------------------------------------------------
342342
// pickle
343343
// ---------------------------------------------------------------------------
344-
private string pickleModuleName() { result in ["pickle", "cPickle", "_pickle"] }
345-
346344
/** Gets a reference to the `pickle` module. */
347-
deprecated DataFlow::Node pickle() {
345+
DataFlow::Node pickle() {
348346
result = API::moduleImport(["pickle", "cPickle", "_pickle"]).getAUse()
349347
}
350348

@@ -578,7 +576,7 @@ private module Stdlib {
578576
// json
579577
// ---------------------------------------------------------------------------
580578
/** Gets a reference to the `json` module. */
581-
API::Node json() { result = API::moduleImport("node") }
579+
API::Node json() { result = API::moduleImport("json") }
582580

583581
/**
584582
* Gets a reference to the attribute `attr_name` of the `json` module.

0 commit comments

Comments
 (0)