Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeder1.xsusenet.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:not': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'warnings': 0.04; 'that?': 0.05; 'subject:Python': 0.06; 'cest': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; 'try:': 0.09; 'url:github': 0.09; 'contribute': 0.11; 'python': 0.11; 'language.': 0.14; 'importerror,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:" 70': 0.16; 'skip:/ 60': 0.16; 'skip:/ 70': 0.16; 'folder': 0.16; 'language': 0.16; 'wrote:': 0.18; 'packages.': 0.19; 'import': 0.22; 'community.': 0.22; 'header:User-Agent:1': 0.23; 'subject:like': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "skip:' 10": 0.31; 'that.': 0.31; 'disabled': 0.31; 'file': 0.32; 'third': 0.33; 'could': 0.34; 'except': 0.35; 'but': 0.35; 'false': 0.36; 'in:': 0.36; 'searching': 0.37; 'to:addr:python-list': 0.38; 'quote': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'solve': 0.60; "you'll": 0.62; 'making': 0.63; 'our': 0.64; 'for:': 0.64; 'charset:windows-1252': 0.65; 'skip:w 40': 0.68; '2015': 0.84; 'subject:confirm': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Looks like Python 3 files do not confirm to Python 3 Date: Fri, 01 May 2015 09:05:27 +0100 References: <87mw1orex3.fsf@Equus.decebal.nl> <87ioccrcmp.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-26-244.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <87ioccrcmp.fsf@Equus.decebal.nl> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430467545 news.xs4all.nl 2853 [2001:888:2000:d::a6]:43298 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89710 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. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence