projects
/
SaveMySugar
/
python3-savemysugar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
92c5c38
)
CallDistanceTransceiver.py: clarify the use of a transceiver in DummyModem
author
Antonio Ospite <ao2@ao2.it>
Sun, 3 Jan 2016 22:22:46 +0000
(23:22 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 10:13:30 +0000
(11:13 +0100)
src/savemysugar/CallDistanceTransceiver.py
patch
|
blob
|
history
diff --git
a/src/savemysugar/CallDistanceTransceiver.py
b/src/savemysugar/CallDistanceTransceiver.py
index
14914b1
..
01414a2
100755
(executable)
--- a/
src/savemysugar/CallDistanceTransceiver.py
+++ b/
src/savemysugar/CallDistanceTransceiver.py
@@
-296,7
+296,12
@@
def test_transmit_receive():
def __init__(self):
self.ring_count = 0
def __init__(self):
self.ring_count = 0
- # Take trasmission times from a transceiver
+ # A transceiver will be used to get the symbol distance to fake in
+ # get_response, but it will only be assigned _after_ DummyModem has
+ # been instantiated.
+ #
+ # This placeholder here avoids an attribute-defined-outside-init
+ # warning from pylint.
self.transceiver = None
random.seed(None)
self.transceiver = None
random.seed(None)