Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!137.226.75.22.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder03.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F09-14.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Rewriting to Python 3 Organization: Decebal Computing References: <87egn0rcc1.fsf@Equus.decebal.nl> <87k2wsnyw7.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Fri, 01 May 2015 16:52:43 +0200 Message-ID: <87bni4nydg.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:j+WQdVQn9VDqJsr72Wip0Jr8AVY= MIME-Version: 1.0 Content-Type: text/plain Lines: 23 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1430493290 news.kpn.nl 25006 81.207.62.244@kpn/81.207.62.244:49092 Xref: csiph.com comp.lang.python:89741 Op Friday 1 May 2015 16:41 CEST schreef Cecil Westerhof: > Op Friday 1 May 2015 09:22 CEST schreef Cecil Westerhof: > >> On my system I have: PARSER_RE_STR = '/(%s)=' % >> '|'.join(DN_LUT.keys() + DN_LUT.values()) in: >> /usr/lib/python3.4/site-packages/ndg/httpsclient/ssl_peer_verification.py >> >> In Python 3 that gives: TypeError: unsupported operand type(s) for >> +: 'dict_keys' and 'dict_values' >> >> How should I rewrite this? > > I am not the only person that has a problem: > https://github.com/cedadev/ndg_httpsclient/issues/1 Just personally contacting does make a difference. He made a patch. I am going to test a later today. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof