Skip to content

Commit

Permalink
# noqa on unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 3, 2019
1 parent 8249c63 commit 3b17345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows/lazagne/config/crypto/pyDes.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _guardAgainstUnicode(self, data):
# Only accept byte strings or ascii unicode values, otherwise
# there is no way to correctly decode the data into bytes.
if _pythonMajorVersion < 3:
if isinstance(data, unicode):
if isinstance(data, unicode): # noqa
raise ValueError("pyDes can only work with bytes, not Unicode strings.")
else:
if isinstance(data, str):
Expand Down Expand Up @@ -849,4 +849,4 @@ def decrypt(self, data, pad=None, padmode=None):
data = self.__key3.crypt(data, DECRYPT)
data = self.__key2.crypt(data, ENCRYPT)
data = self.__key1.crypt(data, DECRYPT)
return self._unpadData(data, pad, padmode)
return self._unpadData(data, pad, padmode)

0 comments on commit 3b17345

Please sign in to comment.