Skip to content

Commit

Permalink
Suppressed InsecureRequestWarning.
Browse files Browse the repository at this point in the history
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed Mar 11, 2015
1 parent 3e9cd79 commit e538d60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run_tests(self):
open(os.path.join("docs", "HISTORY.rst")).read())


requires = ['setuptools', 'requests', 'python-magic', 'urllib3']
requires = ['setuptools', 'requests', 'python-magic']

setup(name='swiftsc',
version='0.6.1',
Expand Down
4 changes: 0 additions & 4 deletions swiftsc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
swiftsc is simple client of OpenStack Swift
"""
import urllib3
from swiftsc.client import Client # silence pyflakes

# See: https://urllib3.readthedocs.org/en/latest/security.html
urllib3.disable_warnings()
3 changes: 3 additions & 0 deletions swiftsc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#: see also http://goo.gl/6KIJnc
TIMEOUT = 5.000

# See: https://urllib3.readthedocs.org/en/latest/security.html
requests.packages.urllib3.disable_warnings()


def _temp_auth(obj):
""" tmpauth """
Expand Down

0 comments on commit e538d60

Please sign in to comment.