lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.13-38-g51a122d

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.13-38-g51a122d



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  51a122db946d3a1db04e9001d0de3c9fc38d2633 (commit)
      from  feca1fe4e717ff69d6471119082f4435e16adcae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=51a122db946d3a1db04e9001d0de3c9fc38d2633

commit 51a122db946d3a1db04e9001d0de3c9fc38d2633
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sun Aug 2 16:56:42 2020 +0200

    Remove custom CA certificate for www.ftc.go.kr
    
    This certificate is not needed any more because the site now uses a
    different certificate that is signed by a known CA.

diff --git a/stdnum/kr/GPKIRootCA1.crt b/stdnum/kr/GPKIRootCA1.crt
deleted file mode 100644
index 20fc1c7..0000000
--- a/stdnum/kr/GPKIRootCA1.crt
+++ /dev/null
@@ -1,21 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDXTCCAkWgAwIBAgIBATANBgkqhkiG9w0BAQsFADBQMQswCQYDVQQGEwJLUjEc
-MBoGA1UECgwTR292ZXJubWVudCBvZiBLb3JlYTENMAsGA1UECwwER1BLSTEUMBIG
-A1UEAwwLR1BLSVJvb3RDQTEwHhcNMTEwODAzMDY1MjMwWhcNMzEwODAzMDY1MjMw
-WjBQMQswCQYDVQQGEwJLUjEcMBoGA1UECgwTR292ZXJubWVudCBvZiBLb3JlYTEN
-MAsGA1UECwwER1BLSTEUMBIGA1UEAwwLR1BLSVJvb3RDQTEwggEiMA0GCSqGSIb3
-DQEBAQUAA4IBDwAwggEKAoIBAQCh/m8EBbDJhGQyN2+g5dTlsgjtaRKqhgj3gkYK
-BgtuXsXkaTVxbf99AvbN3QE8+WCIaPJUd0091UGmLzaBVyW4ct+iUNrX/FXyzjaf
-bNbbl1nfHhaZhkiOTVQhmY5zuj96evEtJMevnxe6iRADOPWnqp+CxT2IzcSFkQCq
-7L2qn8hU2/LpXUvnAYglJZi8t6Ef+r03P1r8dA5OzZ8yV3qhD1R1wsNQtCzMgwcE
-rFRZhFZYuxpfmS5y0fZW0seeTjcdxHiR3whYI5U6AI7DjdWIrT9Cd9ByV4aevkBh
-qkePPIYGmUPXnnqCkdHdnzkMH0WP9TBhD2jTXZKdcFtTyEJrAgMBAAGjQjBAMB0G
-A1UdDgQWBBR4A+sMjKbTVXWkh7Tr0ZpmD0xzizAOBgNVHQ8BAf8EBAMCAQYwDwYD
-VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEARGJWATwo81x7UEQugNbi
-cL8IWXoV51SZVH3kz49fNUjVoq1n2yzfaMddlblbflDNObp/68DxTlSXCeqFHkgi
-/WvyVHERRECXnF0WeeelI+Q8XdF3IJZLT3u5Ss0VAB2loCuC+4hBWSRQu2WZu2Yk
-s9eBN0x6NmtopRmnf2d6VrcFA+WOgUeTjXiDkG52IaPw0w1uTfmRw5epky5idyY2
-bfJ1JeVUINMJnOWpgLkOH3xxakoD8F1Fbi6C3t7MmKupojUq/toUDms6zTk3DIkc
-wd7PALNWL5U8TxNLoroTHSf/lzaOv3o9KDRa0FQo58bPI7MdbRWE4F3mS/ZIrnv7
-jQ==
------END CERTIFICATE-----
diff --git a/stdnum/kr/brn.py b/stdnum/kr/brn.py
index 652ecf3..3bdea1d 100644
--- a/stdnum/kr/brn.py
+++ b/stdnum/kr/brn.py
@@ -88,14 +88,12 @@ def format(number):
 
 def check_ftc(number, timeout=30):  # pragma: no cover
     """Check the number against the Korea Fair Trade Commission website."""
-    from pkg_resources import resource_filename
     import lxml.html
     import requests
     number = compact(number)
     url = 'https://www.ftc.go.kr/bizCommPop.do'
-    certificate = resource_filename(__name__, 'GPKIRootCA1.crt')
     document = lxml.html.fromstring(
-        requests.get(url, params={'wrkr_no': number}, timeout=timeout, 
verify=certificate).text)
+        requests.get(url, params={'wrkr_no': number}, timeout=timeout).text)
     data = dict(zip(
         [(x.text or '').strip() for x in document.findall('.//th')],
         [(x.text or '').strip() for x in document.findall('.//td')]))

-----------------------------------------------------------------------

Summary of changes:
 stdnum/kr/GPKIRootCA1.crt | 21 ---------------------
 stdnum/kr/brn.py          |  4 +---
 2 files changed, 1 insertion(+), 24 deletions(-)
 delete mode 100644 stdnum/kr/GPKIRootCA1.crt


hooks/post-receive
-- 
python-stdnum