Skip to content

Commit 31cfb16

Browse files
committed
Python: Fix minor bug in modernisation-rewrite
Obviously the result module shouldn't be a package 🤦 I was confusing myself, since I wanted to say that `Module::named("Crypto.Cipher")` should be a package :D
1 parent 8b2c74a commit 31cfb16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/ql/src/semmle/python/security/Crypto.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ abstract class WeakCryptoSink extends TaintSink {
1616
module Pycrypto {
1717

1818
ModuleValue cipher(string name) {
19-
result = Module::named("Crypto.Cipher").attr(name) and
20-
result.isPackage()
19+
result = Module::named("Crypto.Cipher").attr(name)
2120
}
2221

2322
class CipherInstance extends TaintKind {

0 commit comments

Comments
 (0)