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 613ddd4 commit 8249c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mac/lazagne/config/crypto/pyDes.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,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

0 comments on commit 8249c63

Please sign in to comment.