From 9c6714c17637fffa592e76e22a39fd4c90070dfc Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Sun, 17 Jun 2018 09:10:44 -0700 Subject: [PATCH] Remove unused imports --- hy/compiler.py | 4 +--- hy/importer.py | 2 +- hy/lex/parser.py | 4 ++-- tests/test_bin.py | 3 +-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index 04d195d..f72e19c 100755 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -15,8 +15,7 @@ from hy.lex.parser import mangle, unmangle import hy.macros from hy._compat import ( - str_type, string_types, bytes_type, long_type, PY3, PY35, PY37, - raise_empty) + str_type, bytes_type, long_type, PY3, PY35, raise_empty) from hy.macros import require, macroexpand, tag_macroexpand import hy.importer @@ -27,7 +26,6 @@ import sys import copy from collections import defaultdict -from cmath import isnan if PY3: import builtins diff --git a/hy/importer.py b/hy/importer.py index 92c95b0..a93d1fd 100644 --- a/hy/importer.py +++ b/hy/importer.py @@ -5,7 +5,7 @@ from __future__ import absolute_import from hy.compiler import hy_compile, HyTypeError -from hy.models import HyObject, HyExpression, HySymbol +from hy.models import HyExpression, HySymbol from hy.lex import tokenize, LexException from hy.errors import HyIOError diff --git a/hy/lex/parser.py b/hy/lex/parser.py index fac2577..63ea277 100755 --- a/hy/lex/parser.py +++ b/hy/lex/parser.py @@ -6,11 +6,11 @@ from __future__ import unicode_literals from functools import wraps -import string, re, unicodedata +import re, unicodedata from rply import ParserGenerator -from hy._compat import PY3, str_type, isidentifier, UCS4 +from hy._compat import str_type, isidentifier, UCS4 from hy.models import (HyBytes, HyComplex, HyDict, HyExpression, HyFloat, HyInteger, HyKeyword, HyList, HySet, HyString, HySymbol) from .lexer import lexer diff --git a/tests/test_bin.py b/tests/test_bin.py index 7b34007..1a32e01 100644 --- a/tests/test_bin.py +++ b/tests/test_bin.py @@ -5,14 +5,13 @@ # license. See the LICENSE. import os -from pipes import quote import re import shlex import subprocess import pytest -from hy._compat import PY3, PY35, PY36, builtins +from hy._compat import builtins from hy.importer import get_bytecode_path