mirror of
https://github.com/wassname/segpy.git
synced 2026-06-27 18:44:26 +08:00
Remove Python 2.7 crutch for reprlib
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user