Skip to content

Commit

Permalink
Clean up some imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrose committed Jan 22, 2015
1 parent fd30b01 commit 42e40d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 1 addition & 8 deletions pyelasticsearch/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
from six import (iterkeys, binary_type, text_type, string_types, integer_types,
iteritems, PY3)
from six.moves import xrange
from six.moves.urllib.parse import urlparse

try:
# PY3
from urllib.parse import urlencode, quote_plus
except ImportError:
# PY2
from urllib import urlencode, quote_plus
from six.moves.urllib.parse import urlparse, urlencode, quote_plus

from elasticsearch.connection_pool import RandomSelector
from elasticsearch.exceptions import (ConnectionError, ConnectionTimeout,
Expand Down
4 changes: 0 additions & 4 deletions pyelasticsearch/tests/client_tests.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# coding=utf-8
import sys
import unittest

from mock import ANY, patch
from nose.tools import eq_, ok_, assert_raises, assert_not_equal
import requests
import six

# Test that __all__ is sufficient:
from pyelasticsearch import *
Expand Down

0 comments on commit 42e40d0

Please sign in to comment.