Skip to content

Commit 68534e6

Browse files
committed
Disable pylint import checking for keyczar lines (only used for tests)
1 parent ed3b42d commit 68534e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

st2common/st2common/util/crypto.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def keyczar_symmetric_encrypt(encrypt_key, plaintext):
325325
326326
:rtype: ``str``
327327
"""
328-
from keyczar.keys import AesKey as KeyczarAesKey
329-
from keyczar.keys import HmacKey as KeyczarHmacKey
330-
from keyczar.keyinfo import GetMode
328+
from keyczar.keys import AesKey as KeyczarAesKey # pylint: disable=import-error
329+
from keyczar.keys import HmacKey as KeyczarHmacKey # pylint: disable=import-error
330+
from keyczar.keyinfo import GetMode # pylint: disable=import-error
331331

332332
encrypt_key = KeyczarAesKey(encrypt_key.aes_key_string,
333333
KeyczarHmacKey(encrypt_key.hmac_key_string,
@@ -352,9 +352,9 @@ def keyczar_symmetric_decrypt(decrypt_key, ciphertext):
352352
353353
:rtype: ``str``
354354
"""
355-
from keyczar.keys import AesKey as KeyczarAesKey
356-
from keyczar.keys import HmacKey as KeyczarHmacKey
357-
from keyczar.keyinfo import GetMode
355+
from keyczar.keys import AesKey as KeyczarAesKey # pylint: disable=import-error
356+
from keyczar.keys import HmacKey as KeyczarHmacKey # pylint: disable=import-error
357+
from keyczar.keyinfo import GetMode # pylint: disable=import-error
358358

359359
decrypt_key = KeyczarAesKey(decrypt_key.aes_key_string,
360360
KeyczarHmacKey(decrypt_key.hmac_key_string,

0 commit comments

Comments
 (0)