pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ipython/ipython/commit/0964ecd3ade77a964ddb5348411067f1f09218de

link crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> Remove unused imports in IPython.utils · ipython/ipython@0964ecd · GitHub
Skip to content

Commit 0964ecd

Browse files
committed
Remove unused imports in IPython.utils
1 parent b337c5c commit 0964ecd

9 files changed

Lines changed: 4 additions & 26 deletions

File tree

IPython/utils/_process_win32.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import os
2020
import sys
2121
import ctypes
22-
import msvcrt
2322

2423
from ctypes import c_int, POINTER
2524
from ctypes.wintypes import LPCWSTR, HLOCAL

IPython/utils/_process_win32_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from __future__ import print_function
1414

1515
# stdlib
16-
import os, sys, time, threading
16+
import os, sys, threading
1717
import ctypes, msvcrt
1818

1919
# Win32 API types needed for the API calls

IPython/utils/pickleutil.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
except:
3131
numpy = None
3232

33-
import codeutil
3433
import py3compat
3534
from importstring import import_item
3635

IPython/utils/tests/test_module_paths.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
2-
"""Tests for IPython.utils.path.py"""
2+
"""Tests for IPython.utils.module_paths.py"""
33

44
#-----------------------------------------------------------------------------
55
# Copyright (C) 2008-2011 The IPython Development Team
@@ -18,20 +18,10 @@
1818
import shutil
1919
import sys
2020
import tempfile
21-
import StringIO
2221

2322
from os.path import join, abspath, split
2423

25-
import nose.tools as nt
26-
27-
from nose import with_setup
28-
29-
import IPython
30-
from IPython.testing import decorators as dec
31-
from IPython.testing.decorators import skip_if_not_win32, skip_win32
3224
from IPython.testing.tools import make_tempfile
33-
from IPython.utils import path, io
34-
from IPython.utils import py3compat
3525

3626
import IPython.utils.module_paths as mp
3727

@@ -91,7 +81,7 @@ def test_get_init_3():
9181
with make_tempfile(join(TMP_TEST_DIR, "__init__.pyc")):
9282
assert mp.get_init(TMP_TEST_DIR) is None
9383

94-
def test_get_init_3():
84+
def test_get_init_4():
9585
"""get_init can't find __init__ in empty testdir"""
9686
assert mp.get_init(TMP_TEST_DIR) is None
9787

IPython/utils/tests/test_path.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import shutil
1919
import sys
2020
import tempfile
21-
from io import StringIO
2221
from contextlib import contextmanager
2322

2423
from os.path import join, abspath, split
@@ -31,7 +30,7 @@
3130
from IPython.testing import decorators as dec
3231
from IPython.testing.decorators import skip_if_not_win32, skip_win32
3332
from IPython.testing.tools import make_tempfile, AssertPrints
34-
from IPython.utils import path, io
33+
from IPython.utils import path
3534
from IPython.utils import py3compat
3635
from IPython.utils.tempdir import TemporaryDirectory
3736

IPython/utils/tests/test_text.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
import nose.tools as nt
2020

21-
from nose import with_setup
22-
23-
from IPython.testing import decorators as dec
2421
from IPython.utils import text
2522

2623
#-----------------------------------------------------------------------------

IPython/utils/tests/test_wildcard.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Library imports
55
#-----------------------------------------------------------------------------
66
# Stdlib
7-
import sys
87
import unittest
98

109
# Our own

IPython/utils/text.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@
1919
# Imports
2020
#-----------------------------------------------------------------------------
2121

22-
import __main__
23-
2422
import os
2523
import re
26-
import sys
2724
import textwrap
2825
from string import Formatter
2926

3027
from IPython.external.path import path
3128
from IPython.testing.skipdoctest import skip_doctest_py3, skip_doctest
3229
from IPython.utils import py3compat
33-
from IPython.utils.data import flatten
3430

3531
#-----------------------------------------------------------------------------
3632
# Code

IPython/utils/zmqrelated.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# Verify zmq version dependency >= 2.1.11
1111
#-----------------------------------------------------------------------------
1212

13-
import warnings
1413
from IPython.utils.version import check_version
1514

1615

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy