From 5f0f940a1f42fe899604b39e4422d30791831e6f Mon Sep 17 00:00:00 2001 From: Jordan Suchow Date: Sun, 19 Apr 2015 01:05:22 -0700 Subject: [PATCH] Remove unused imports --- bin/parser/train.py | 2 -- bin/prepare_vecs.py | 2 -- fabfile.py | 2 +- setup.py | 5 ----- spacy/util.py | 1 - tests/test_span.py | 1 - tests/test_wiki_sun.py | 1 - 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/bin/parser/train.py b/bin/parser/train.py index e590b297b..48069b829 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -7,8 +7,6 @@ from os import path import shutil import codecs import random -import time -import gzip import plac import cProfile diff --git a/bin/prepare_vecs.py b/bin/prepare_vecs.py index a8c774052..3262f7ae6 100644 --- a/bin/prepare_vecs.py +++ b/bin/prepare_vecs.py @@ -1,8 +1,6 @@ """Read a vector file, and prepare it as binary data, for easy consumption""" -import bz2 import plac -import struct from spacy.vocab import write_binary_vectors diff --git a/fabfile.py b/fabfile.py index dc6177107..070fd4cda 100644 --- a/fabfile.py +++ b/fabfile.py @@ -1,4 +1,4 @@ -from fabric.api import local, run, lcd, cd, env +from fabric.api import local, lcd, env from os.path import exists as file_exists from fabtools.python import virtualenv from os import path diff --git a/setup.py b/setup.py index 36b965ff3..c21360a97 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,11 @@ #!/usr/bin/env python -import subprocess from setuptools import setup -from glob import glob import shutil import sys import os from os import path -from os.path import splitext - -import shutil from setuptools import Extension from distutils import sysconfig import platform diff --git a/spacy/util.py b/spacy/util.py index cbc5dfbed..0f1c99979 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -1,4 +1,3 @@ -import os from os import path import codecs import json diff --git a/tests/test_span.py b/tests/test_span.py index cbbe4494d..99b96838a 100644 --- a/tests/test_span.py +++ b/tests/test_span.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals from spacy.en import English import pytest -import re EN = English() diff --git a/tests/test_wiki_sun.py b/tests/test_wiki_sun.py index faad3eb30..afca2ea06 100644 --- a/tests/test_wiki_sun.py +++ b/tests/test_wiki_sun.py @@ -4,7 +4,6 @@ from spacy.en import English from spacy.util import utf8open import pytest -import os from os import path