Re: 'module' object has no attribute 'wrap_socket' when use ssl

2017-04-15 Thread Ho Yeung Lee
On Saturday, April 15, 2017 at 3:18:58 PM UTC+8, Peter Otten wrote: > Ho Yeung Lee wrote: > > > Python 2.7.6 (default, Jun 22 2015, 18:00:18) > > [GCC 4.8.2] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > import ssl > > Traceback (most recent call last)

Re: 'module' object has no attribute 'wrap_socket' when use ssl

2017-04-15 Thread Peter Otten
Ho Yeung Lee wrote: > Python 2.7.6 (default, Jun 22 2015, 18:00:18) > [GCC 4.8.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import ssl > Traceback (most recent call last): > File "", line 1, in > File "/home/martin/Documents/ssl.py", line 13, in

'module' object has no attribute 'wrap_socket' when use ssl

2017-04-15 Thread Ho Yeung Lee
Python 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl Traceback (most recent call last): File "", line 1, in File "/home/martin/Documents/ssl.py", line 13, in SSLError -- exception raised