Skip to content

Commit 036fddf

Browse files
committed
Python: Namable -> Nameable
1 parent 02d6de8 commit 036fddf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/src/Security/CWE-327/InsecureProtocol.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ class ProtocolConfiguration extends DataFlow::Node {
3333
//
3434
// Note that AstNode is abstract and AstNode_ is a library class, so
3535
// we have to extend @py_ast_node.
36-
class Namable extends @py_ast_node {
37-
Namable() {
36+
class Nameable extends @py_ast_node {
37+
Nameable() {
3838
exists(ProtocolConfiguration protocolConfiguration |
3939
this = protocolConfiguration.asCfgNode().(CallNode).getFunction().getNode()
4040
)
4141
or
42-
exists(Namable attr | this = attr.(Attribute).getObject())
42+
exists(Nameable attr | this = attr.(Attribute).getObject())
4343
}
4444

4545
string toString() { result = "AstNode" }
4646
}
4747

48-
string callName(Namable call) {
48+
string callName(Nameable call) {
4949
result = call.(Name).getId()
5050
or
5151
exists(Attribute a | a = call | result = callName(a.getObject()) + "." + a.getName())

0 commit comments

Comments
 (0)