PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/logilab-astng-0.23.1/test/data/appl/myConnection.py

#
Python | 30 lines | 7 code | 3 blank | 20 comment | 1 complexity | ef3948b153e5739a596d4ce298529148 MD5 | raw file
 1# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 2# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 3# copyright 2003-2010 Sylvain Thenault, all rights reserved.
 4# contact mailto:thenault@gmail.com
 5#
 6# This file is part of logilab-astng.
 7#
 8# logilab-astng is free software: you can redistribute it and/or modify it
 9# under the terms of the GNU Lesser General Public License as published by the
10# Free Software Foundation, either version 2.1 of the License, or (at your
11# option) any later version.
12#
13# logilab-astng is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
16# for more details.
17#
18# You should have received a copy of the GNU Lesser General Public License along
19# with logilab-astng. If not, see <http://www.gnu.org/licenses/>.
20import SSL1
21class MyConnection(SSL1.Connection):
22
23    """An SSL connection."""
24
25    def __init__(self, dummy):
26        print 'MyConnection init'
27        
28if __name__ == '__main__':
29    myConnection = MyConnection(' ')
30    raw_input('Press Enter to continue...')