Skip to content

Commit e3a933e

Browse files
Correcting _is_open typos.
1 parent fa9ac6e commit e3a933e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

xbee/tests/Fake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__( self, port='/dev/null', baudrate = 19200, timeout=1,
2727
self.stopbits = stopbits
2828
self.xonxoff = xonxoff
2929
self.rtscts = rtscts
30-
self._isOpen = True
30+
self._is_open = True
3131

3232
self._data_written = ""
3333
self._read_data = ""
@@ -94,7 +94,7 @@ def getSettingsDict( self ):
9494
'stopbits' : self.stopbits,
9595
'xonxoff' : self.xonxoff,
9696
'rtscts' : self.rtscts
97-
};
97+
}
9898
return settings
9999

100100
def set_read_data( self, data ):
@@ -120,7 +120,7 @@ def __str__( self ):
120120
Returns a string representation of the serial class.
121121
"""
122122
return "Serial<id=0xa81c10, open=%s>( port='%s', baudrate=%d," \
123-
% ( str(self.is_open), self.port, self.baudrate ) \
123+
% ( str(self._is_open), self.port, self.baudrate ) \
124124
+ " bytesize=%d, parity='%s', stopbits=%d, xonxoff=%d, rtscts=%d)"\
125125
% ( self.bytesize, self.parity, self.stopbits, self.xonxoff,
126126
self.rtscts )

0 commit comments

Comments
 (0)