mirror of
https://github.com/wassname/segpy.git
synced 2026-08-11 11:25:46 +08:00
Remove Python 2.7 crutch for unicode/str discrepancy.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user