Remove Python 2.7 crutch for unicode/str discrepancy.

This commit is contained in:
Robert Smallshire
2015-05-05 13:35:52 +02:00
parent 442444b0f1
commit 5c6238c528
2 changed files with 1 additions and 12 deletions
-10
View File
@@ -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
View File
@@ -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)