PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, LGPL-2.1
  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/>.
  20. import SSL1
  21. class MyConnection(SSL1.Connection):
  22. """An SSL connection."""
  23. def __init__(self, dummy):
  24. print 'MyConnection init'
  25. if __name__ == '__main__':
  26. myConnection = MyConnection(' ')
  27. raw_input('Press Enter to continue...')