/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
- # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
- # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
- # copyright 2003-2010 Sylvain Thenault, all rights reserved.
- # contact mailto:thenault@gmail.com
- #
- # This file is part of logilab-astng.
- #
- # logilab-astng is free software: you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as published by the
- # Free Software Foundation, either version 2.1 of the License, or (at your
- # option) any later version.
- #
- # logilab-astng is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- # for more details.
- #
- # You should have received a copy of the GNU Lesser General Public License along
- # with logilab-astng. If not, see <http://www.gnu.org/licenses/>.
- import SSL1
- class MyConnection(SSL1.Connection):
- """An SSL connection."""
- def __init__(self, dummy):
- print 'MyConnection init'
-
- if __name__ == '__main__':
- myConnection = MyConnection(' ')
- raw_input('Press Enter to continue...')