diff --git a/openlr/openlr_bytes_io.py b/openlr/openlr_bytes_io.py index f84b7ca..096f78a 100644 --- a/openlr/openlr_bytes_io.py +++ b/openlr/openlr_bytes_io.py @@ -23,7 +23,6 @@ from openlr.utils import j_round, sgn -PY2 = sys.version_info[0] == 2 DECA_MICRO_DEG_FACTOR = 100000.0 DISTANCE_PER_INTERVAL = 58.6 BEAR_SECTOR = 11.25 @@ -117,14 +116,6 @@ def int_to_bytes(val, size=3, signed=True): class OpenLRBytesIO(BytesIO): """In-memory binary stream for reading/writing OpenLR data""" - def read(self, size=-1): - """Python 2 compatibility for str -> bytes""" - bytes = super(OpenLRBytesIO, self).read(size) - if PY2: - return bytearray(bytes) - else: - return bytes - def read_status(self): """Reads status from the first byte: version & location type