diff --git a/segpy/catalog.py b/segpy/catalog.py index 663b5a3..a5e7719 100644 --- a/segpy/catalog.py +++ b/segpy/catalog.py @@ -1,8 +1,8 @@ from abc import abstractmethod, ABCMeta from collections import Mapping, Sequence, OrderedDict from fractions import Fraction +import reprlib -from segpy.portability import reprlib from segpy.util import contains_duplicates, measure_stride, minmax diff --git a/segpy/portability.py b/segpy/portability.py index 504d065..ccd0979 100644 --- a/segpy/portability.py +++ b/segpy/portability.py @@ -4,12 +4,6 @@ import sys EMPTY_BYTE_STRING = b'' if sys.version_info >= (3, 0) else '' -if sys.version_info >= (3, 0): - import reprlib - reprlib = reprlib # Keep the static analyzer happy -else: - import repr as reprlib - if sys.version_info >= (3, 0): izip = zip from itertools import zip_longest as izip_longest