pytty

changeset 30:873320419f15

Added baudrate to __str__ and __repr__ output
author Arc Riley <arcriley@gmail.com>
date Tue, 10 Jul 2012 03:53:06 -0400
parents 10bc49064475
children 34b161a8e076
files src/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/__init__.py	Tue Jul 10 03:47:01 2012 -0400
     1.2 +++ b/src/__init__.py	Tue Jul 10 03:53:06 2012 -0400
     1.3 @@ -80,7 +80,7 @@
     1.4          return '<pytty.TTY (%s)>' % str(self)
     1.5  
     1.6      def __str__(self) :
     1.7 -        return '%i%s%i' % (self.bits, self.parity, self.stops)
     1.8 +        return '%s %i%s%i' % (self.baud, self.bits, self.parity, self.stops)
     1.9  
    1.10      @property
    1.11      def baud (self) :