|
Line 0
Link Here
|
|
|
1 |
--- serial/serialposix.py.orig 2016-10-12 02:38:27 UTC |
| 2 |
+++ serial/serialposix.py |
| 3 |
@@ -130,10 +130,15 @@ elif plat[:3] == 'bsd' or \ |
| 4 |
def device(port): |
| 5 |
return '/dev/cuad%d' % port |
| 6 |
|
| 7 |
+ # set_special_baudrate() should never get called |
| 8 |
def set_special_baudrate(port, baudrate): |
| 9 |
- raise ValueError("sorry don't know how to handle non standard baud rate on this platform") |
| 10 |
+ pass |
| 11 |
|
| 12 |
- baudrate_constants = {} |
| 13 |
+ class ReturnBaudrate(object): |
| 14 |
+ def __getitem__(self, key): |
| 15 |
+ return key |
| 16 |
+ |
| 17 |
+ baudrate_constants = ReturnBaudrate() |
| 18 |
|
| 19 |
elif plat[:6] == 'darwin': # OS X |
| 20 |
|