Skip to content

Commit

Permalink
Add certs from certifi to PoolManager
Browse files Browse the repository at this point in the history
  • Loading branch information
alissonlauffer committed Feb 6, 2019
1 parent d28107b commit ecf4911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion duckpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import certifi
import urllib3
from urllib.parse import unquote
from bs4 import BeautifulSoup


http = urllib3.PoolManager()
http = urllib3.PoolManager(
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where()
)


def search(query, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='duckpy',
version='1.2.1',
version='1.2.2',
packages=setuptools.find_packages(),
install_requires=['bs4', 'urllib3', 'certifi'],
url='https://github.com/AmanoTeam/duckpy',
Expand Down

0 comments on commit ecf4911

Please sign in to comment.