Skip to content

Commit

Permalink
Define unicode in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 3, 2019
1 parent 74fa6a7 commit 613ddd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Linux/lazagne/config/crypto/pyDes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@

import sys

try:
unicode
except NameError:
unicode = str

# _pythonMajorVersion is used to handle Python2 and Python3 differences.
_pythonMajorVersion = sys.version_info[0]

Expand Down Expand Up @@ -123,7 +128,6 @@ def __init__(self, mode=ECB, IV=None, pad=None, padmode=PAD_NORMAL):
self._iv = IV
self._padding = pad
self._padmode = padmode

def getKey(self):
"""getKey() -> bytes"""
return self.__key
Expand Down

0 comments on commit 613ddd4

Please sign in to comment.