mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
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.
This commit is contained in:
@@ -341,10 +341,8 @@ private module Stdlib {
|
||||
// ---------------------------------------------------------------------------
|
||||
// pickle
|
||||
// ---------------------------------------------------------------------------
|
||||
private string pickleModuleName() { result in ["pickle", "cPickle", "_pickle"] }
|
||||
|
||||
/** Gets a reference to the `pickle` module. */
|
||||
deprecated DataFlow::Node pickle() {
|
||||
DataFlow::Node pickle() {
|
||||
result = API::moduleImport(["pickle", "cPickle", "_pickle"]).getAUse()
|
||||
}
|
||||
|
||||
@@ -578,7 +576,7 @@ private module Stdlib {
|
||||
// json
|
||||
// ---------------------------------------------------------------------------
|
||||
/** Gets a reference to the `json` module. */
|
||||
API::Node json() { result = API::moduleImport("node") }
|
||||
API::Node json() { result = API::moduleImport("json") }
|
||||
|
||||
/**
|
||||
* Gets a reference to the attribute `attr_name` of the `json` module.
|
||||
|
||||
Reference in New Issue
Block a user