Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89716

Re: Looks like Python 3 files do not confirm to Python 3

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F10-16.ams.news.kpn.nl
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject Re: Looks like Python 3 files do not confirm to Python 3
Organization Decebal Computing
References <87mw1orex3.fsf@Equus.decebal.nl> <87ioccrcmp.fsf@Equus.decebal.nl> <mailman.2.1430467545.3347.python-list@python.org>
X-Face "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E
X-Homepage http://www.decebal.nl/
Date Fri, 01 May 2015 11:18:38 +0200
Message-ID <87sibgpsep.fsf@Equus.decebal.nl> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:IsN9Y5DEvfn4sCOEXvsvx3WuNoc=
MIME-Version 1.0
Content-Type text/plain
Lines 51
NNTP-Posting-Host 81.207.62.244
X-Trace 1430472531 news.kpn.nl 21122 81.207.62.244@kpn/81.207.62.244:44558
Xref csiph.com comp.lang.python:89716

Show key headers only | View raw


Op Friday 1 May 2015 10:05 CEST schreef Mark Lawrence:

> On 01/05/2015 08:16, Cecil Westerhof wrote:
>> Op Friday 1 May 2015 08:27 CEST schreef Cecil Westerhof:
>>
>>> On my system in:
>>> /usr/lib/python3.4/site-packages/ndg/httpsclient/ssl_peer_verification.py
>>>
>>> it says:
>>> try:
>>> from ndg.httpsclient.subj_alt_name import SubjectAltName
>>> from pyasn1.codec.der import decoder as der_decoder
>>> SUBJ_ALT_NAME_SUPPORT = True
>>> except ImportError, e:
>>> SUBJ_ALT_NAME_SUPPORT = False
>>> SUBJ_ALT_NAME_SUPPORT_MSG = (
>>> 'SubjectAltName support is disabled - check pyasn1 package'
>>> 'installation to enable'
>>> )
>>> import warnings
>>> warnings.warn(SUBJ_ALT_NAME_SUPPORT_MSG)
>>>
>>> which gives: File
>>> "/usr/lib/python3.4/site-packages/ndg/httpsclient/ssl_peer_verification.py",
>>> line 17 except ImportError, e:
>>
>> It is solved by making it:
>> except (ImportError) as e:
>>
>> The same for:
>> /usr/lib/python3.4/site-packages/ndg/httpsclient/subj_alt_name.py
>>
>> I would not mind to solve those and others if I could contribute
>> them to the Python community. What is the procedure for that?
>>
>
> You'll have to find out who supports ndg as it's not standard
> Python. The big clue is the site-packages folder name, that's used
> for third party packages. From searching I think it's this
> https://github.com/cedadev/ndg_httpsclient/ but please don't quote
> me on that.

Yeah, I was barking up to the wrong tree.

I found an email address in the sources. The copyright is from 2012,
so hopefully it is still supported.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Looks like Python 3 files do not confirm to Python 3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-01 08:27 +0200
  Re: Looks like Python 3 files do not confirm to Python 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-01 17:00 +1000
    Re: Looks like Python 3 files do not confirm to Python 3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-01 09:36 +0200
  Re: Looks like Python 3 files do not confirm to Python 3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-01 09:16 +0200
    Re: Looks like Python 3 files do not confirm to Python 3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-01 09:05 +0100
      Re: Looks like Python 3 files do not confirm to Python 3 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-01 11:18 +0200

csiph-web