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


Groups > comp.lang.python > #89701

Looks like Python 3 files do not confirm to Python 3

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject Looks like Python 3 files do not confirm to Python 3
Organization Decebal Computing
Date 2015-05-01 08:27 +0200
Message-ID <87mw1orex3.fsf@Equus.decebal.nl> (permalink)

Show all headers | View raw


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:

Does my system have outdated files, or are there still Python 3 files
that do not conform to Python 3?

The only real python program I use at the moment uses:
    import urllib3.contrib.pyopenssl

and then you get this error.


So another reason to stay with Python 2. (While still writing code
that works in Python3.)

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

Back to comp.lang.python | Previous | NextNext 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