Skip to content

Commit 5353577

Browse files
committed
Python 3 compatibility: Fix crash because of a renamed module
1 parent 64221fb commit 5353577

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spyderlib/py3compat.py

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import pickle
6262
from UserDict import DictMixin as MutableMapping
6363
import thread as _thread
64+
import repr as reprlib
6465
else:
6566
# Python 3
6667
import builtins
@@ -74,6 +75,7 @@
7475
import pickle
7576
from collections import MutableMapping
7677
import _thread
78+
import reprlib
7779

7880

7981
#==============================================================================

spyderlib/widgets/dicteditorutils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
from __future__ import print_function
1212

1313
import re
14-
import repr as reprlib
1514

1615
# Local imports
1716
from spyderlib.py3compat import (NUMERIC_TYPES, TEXT_TYPES, to_text_string,
18-
is_text_string, is_binary_string)
17+
is_text_string, is_binary_string, reprlib)
1918
from spyderlib.utils import programs
2019
from spyderlib import dependencies
2120
from spyderlib.baseconfig import _

0 commit comments

Comments
 (0)