From 568c746fecc3d3f8aa9a61d2e02bf7b1521ec5c3 2018-04-02 10:54:52 From: Thomas Kluyver Date: 2018-04-02 10:54:52 Subject: [PATCH] Simplify some pathlib imports --- diff --git a/IPython/utils/tests/test_text.py b/IPython/utils/tests/test_text.py index d1666b9..763b1fa 100644 --- a/IPython/utils/tests/test_text.py +++ b/IPython/utils/tests/test_text.py @@ -18,11 +18,7 @@ import random import sys import nose.tools as nt -try: - from pathlib import Path -except ImportError: - # for Python 3.3 - from pathlib2 import Path +from pathlib import Path from IPython.utils import text diff --git a/IPython/utils/text.py b/IPython/utils/text.py index 397209d..cedd164 100644 --- a/IPython/utils/text.py +++ b/IPython/utils/text.py @@ -13,11 +13,7 @@ import re import sys import textwrap from string import Formatter -try: - from pathlib import Path -except ImportError: - # for Python 3.3 - from pathlib2 import Path +from pathlib import Path from IPython.utils import py3compat