Skip to content

Commit ce93235

Browse files
authored
Replace imp with importlib. Fixes #5 (#7)
1 parent 408b2c1 commit ce93235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff_match_patch/tests/diff_match_patch_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
limitations under the License.
1818
"""
1919

20-
import imp
20+
import importlib
2121
import os
2222
import sys
2323
import time
@@ -30,7 +30,7 @@
3030

3131
# Force a module reload. Allows one to edit the DMP module and rerun the tests
3232
# without leaving the Python interpreter.
33-
imp.reload(dmp_module)
33+
importlib.reload(dmp_module)
3434

3535

3636
class DiffMatchPatchTest(unittest.TestCase):

0 commit comments

Comments
 (0)