Remove httplib2

It's used only for setup debug level info, but since HTTPClient
switched to requests lib, it became useless.

requests lib does no logging of its own. It's logging actually
done by urllib3 and can be setup as usual logging level.

Change-Id: I7df95e41d5f3a2406b43643bfa828b751faab116
This commit is contained in:
Anton Arefiev 2016-03-14 18:21:44 +02:00
parent 2e91628727
commit 8a83d36021
3 changed files with 0 additions and 10 deletions

View File

@ -21,7 +21,6 @@ import getpass
import logging
import sys
import httplib2
from keystoneauth1.loading import session as kasession
from oslo_utils import encodeutils
import six
@ -254,8 +253,6 @@ class IronicShell(object):
logging.basicConfig(
format="%(levelname)s (%(module)s:%(lineno)d) %(message)s",
level=logging.DEBUG)
httplib2.debuglevel = 1
else:
logging.basicConfig(
format="%(levelname)s %(message)s",

View File

@ -15,7 +15,6 @@ import sys
import uuid
import fixtures
import httplib2
from keystoneauth1 import exceptions as keystone_exc
from keystoneauth1 import fixture as ks_fixture
import mock
@ -91,11 +90,6 @@ class ShellTest(utils.BaseTestCase):
def test_help_unknown_command(self):
self.assertRaises(exc.CommandError, self.shell, 'help foofoo')
def test_debug(self):
httplib2.debuglevel = 0
self.shell('--debug help')
self.assertEqual(1, httplib2.debuglevel)
def test_help(self):
required = [
'.*?^usage: ironic',

View File

@ -5,7 +5,6 @@ pbr>=1.6 # Apache-2.0
appdirs>=1.3.0 # MIT License
dogpile.cache>=0.5.7 # BSD
cliff!=1.16.0,!=1.17.0,>=1.15.0 # Apache-2.0
httplib2>=0.7.5 # MIT
keystoneauth1>=2.1.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.utils>=3.5.0 # Apache-2.0