8000 Drop custom certificates for www.jpn.gov.my · arthurdejong/python-stdnum@1a87baf · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a87baf

Browse files
committed
Drop custom certificates for www.jpn.gov.my
The certificate chain for www.jpn.gov.my seems to have been fixed.
1 parent 44575a1 commit 1a87baf

File tree

2 files changed

+2
-59
lines changed

2 files changed

+2
-59
lines changed

update/my_bp.crt

Lines changed: 0 additions & 55 deletions
This file was deleted.

update/my_bp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"""This script downloads the list of states and countries and their
2323
birthplace code from the National Registration Department of Malaysia."""
2424

25-
import os
2625
import re
2726
from collections import defaultdict
2827

@@ -62,20 +61,19 @@ def parse(content):
6261

6362

6463
if __name__ == '__main__':
65-
ca_certificate = os.path.join(os.path.dirname(__file__), 'my_bp.crt')
6664
headers = {
6765
'User-Agent': user_agent,
6866
}
6967
results = defaultdict(lambda: defaultdict(set))
7068
# read the states
71-
response = requests.get(state_list_url, headers=headers, verify=ca_certificate, timeout=30)
69+
response = requests.get(state_list_url, headers=headers, timeout=30)
7270
response.raise_for_status()
7371
for state, bps in parse(response.content):
7472
for bp in bps:
7573
results[bp]['state'] = state
7674
results[bp]['countries'].add('Malaysia')
7775
# read the countries
78-
response = requests.get(country_list_url, headers=headers, verify=ca_certificate, timeout=30)
76+
response = requests.get(country_list_url, headers=headers, timeout=30)
7977
response.raise_for_status()
8078
for country, bps in parse(response.content):
8179
for bp in bps:

0 commit comments

Comments
 (0)
0