pytty

changeset 17:c9c57104c858

__credits__ now uses 4 space indentation Bumped reported version for 0.3 Removed trailing spaces
author Arc Riley <arcriley@gmail.com>
date Tue, 13 Dec 2011 11:51:00 -0500
parents 0c4060d7c478
children 27c8ec364325
files src/__init__.py
diffstat 1 files changed, 23 insertions(+), 16 deletions(-) [+]
line diff
     1.1 --- a/src/__init__.py	Tue Dec 13 11:50:05 2011 -0500
     1.2 +++ b/src/__init__.py	Tue Dec 13 11:51:00 2011 -0500
     1.3 @@ -1,36 +1,43 @@
     1.4  # -*- coding: utf-8 -*-
     1.5  
     1.6 -''' PyTTY - Python serial access package '''
     1.7 +'''Python serial access package
     1.8  
     1.9 -__credits__ = '''Copyright (C) 2010 Arc Riley
    1.10 +    This package provides easy access to TTY devices from Python.
    1.11 +'''
    1.12  
    1.13 -  This program is free software; you can redistribute it and/or modify
    1.14 -  it under the terms of the GNU Lesser General Public License as published
    1.15 -  by the Free Software Foundation, either version 3 of the License, or
    1.16 -  (at your option) any later version.
    1.17 +__credits__ = '''Copyright (C) 2010,2011 Arc Riley
    1.18  
    1.19 -  This program is distributed in the hope that it will be useful,
    1.20 -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.21 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.22 -  GNU Affero General Public License for more details.
    1.23 +    This program is free software; you can redistribute it and/or modify
    1.24 +    it under the terms of the GNU Lesser General Public License as published
    1.25 +    by the Free Software Foundation, either version 3 of the License, or
    1.26 +    (at your option) any later version.
    1.27  
    1.28 -  You should have received a copy of the GNU Lesser General Public License
    1.29 -  along with this program; if not, see http://www.gnu.org/licenses
    1.30 +    This program is distributed in the hope that it will be useful,
    1.31 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.32 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.33 +    GNU Lesser General Public License for more details.
    1.34 +
    1.35 +    You should have received a copy of the GNU Lesser General Public License
    1.36 +    along with this program; if not, see http://www.gnu.org/licenses
    1.37  '''
    1.38 +
    1.39  __author__  = '\n'.join((
    1.40    'Arc Riley <arcriley@gmail.com>',
    1.41    'Chris Koepke',
    1.42  ))
    1.43 -__version__ = '0.2'
    1.44 +
    1.45 +__version__ = '0.3'
    1.46 +
    1.47  
    1.48  import io
    1.49  
    1.50 +
    1.51  class TTY (io.BufferedRWPair) :
    1.52    ''' TTY io class
    1.53  
    1.54 -    This is a subclass of io.BufferedRWPair from the Python standard library 
    1.55 +    This is a subclass of io.BufferedRWPair from the Python standard library
    1.56      which opens a tty device, sets nonblock mode on the device, and allows the
    1.57 -    user to change baud rate, flow control, and other settings often available 
    1.58 +    user to change baud rate, flow control, and other settings often available
    1.59      to tty devices.
    1.60    '''
    1.61  
    1.62 @@ -58,7 +65,7 @@
    1.63      self._fdi = reader.fileno()
    1.64      fcntl(self._fdi, F_SETFL, (fcntl(self._fdi, F_GETFL) | O_NONBLOCK))
    1.65  
    1.66 -    # initialize self with BufferedRWPair 
    1.67 +    # initialize self with BufferedRWPair
    1.68      super(TTY, self).__init__(reader, writer)
    1.69  
    1.70