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
This commit is contained in:
Rasmus Wriedt Larsen
2020-03-09 15:49:08 +01:00
parent 8b2c74a4dd
commit 31cfb1689c

View File

@@ -16,8 +16,7 @@ abstract class WeakCryptoSink extends TaintSink {
module Pycrypto {
ModuleValue cipher(string name) {
result = Module::named("Crypto.Cipher").attr(name) and
result.isPackage()
result = Module::named("Crypto.Cipher").attr(name)
}
class CipherInstance extends TaintKind {