pytty

changeset 8:122593045b97

Adding baud rate property
author Chris Koepke
date Tue, 09 Nov 2010 19:03:39 -0500
parents cb48ba7a39d3
children 20bd093f4b84
files src/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/__init__.py	Tue Nov 09 19:01:19 2010 -0500
     1.2 +++ b/src/__init__.py	Tue Nov 09 19:03:39 2010 -0500
     1.3 @@ -56,7 +56,7 @@
     1.4      # initialize self with BufferedRWPair 
     1.5      super(TTY, self).__init__(reader, writer)
     1.6  
     1.7 -  self.baud_help = 'Baud rate can be set to any value but standard settings are 9600, 56000, and 115200'
     1.8 +  baud_help = 'Baud rate can be set to any value but standard settings are 9600, 56000, and 115200'
     1.9  
    1.10    def get_baud(self): return self.__baud
    1.11  
    1.12 @@ -64,7 +64,7 @@
    1.13  
    1.14    def del_baud(self): del self.__baud
    1.15  
    1.16 -  self.baud = property(self.get_baud,self.set_baud,self.del_baud,self.baud_help)
    1.17 +  baud = property(get_baud,set_baud,del_baud,baud_help)
    1.18  
    1.19  # Clean up package namespace
    1.20  del(io)