diff --git a/segpy/portability.py b/segpy/portability.py index c6f131c..33298f7 100644 --- a/segpy/portability.py +++ b/segpy/portability.py @@ -2,13 +2,3 @@ import os import sys EMPTY_BYTE_STRING = b'' if sys.version_info >= (3, 0) else '' - - -if sys.version_info >= (3, 0): - unicode = str -else: - unicode = unicode - - - - diff --git a/segpy/toolkit.py b/segpy/toolkit.py index d2dfd2b..1469ac4 100644 --- a/segpy/toolkit.py +++ b/segpy/toolkit.py @@ -142,8 +142,7 @@ def read_textual_reel_header(fh, encoding): encoding: Either 'cp037' for EBCDIC or 'ascii' for ASCII. Returns: - A tuple of forty Unicode strings (Python 2: unicode, Python 3: str) - containing the transcoded header data. + A tuple of forty Unicode strings containing the transcoded header data. """ fh.seek(0) raw_header = fh.read(TEXTUAL_HEADER_NUM_BYTES)