Skip to content

Commit b6c8dbc

Browse files
hgonzaleDigidiescalo
authored andcommitted
io: change visibility of io sample parser methods to private
Signed-off-by: Héctor González <[email protected]>
1 parent 17e21a3 commit b6c8dbc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

digi/xbee/io.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017, Digi International Inc.
1+
# Copyright 2017, 2018, Digi International Inc.
22
#
33
# This Source Code Form is subject to the terms of the Mozilla Public
44
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -294,9 +294,9 @@ def __init__(self, io_sample_payload):
294294
self.__io_sample_payload = io_sample_payload
295295

296296
if len(self.__io_sample_payload) % 2 != 0:
297-
self.parse_raw_io_sample()
297+
self.__parse_raw_io_sample()
298298
else:
299-
self.parse_io_sample()
299+
self.__parse_io_sample()
300300

301301
def __str__(self):
302302
s = "{"
@@ -325,7 +325,7 @@ def min_io_sample_payload():
325325
"""
326326
return IOSample.__MIN_IO_SAMPLE_PAYLOAD_LENGTH
327327

328-
def parse_raw_io_sample(self):
328+
def __parse_raw_io_sample(self):
329329
"""
330330
Parses the information contained in the IO sample bytes reading the
331331
value of each configured DIO and ADC.
@@ -378,7 +378,7 @@ def parse_raw_io_sample(self):
378378
data_index += 2
379379
adc_index += 1
380380

381-
def parse_io_sample(self):
381+
def __parse_io_sample(self):
382382
"""
383383
Parses the information contained in the IO sample bytes reading the
384384
value of each configured DIO and ADC.

0 commit comments

Comments
 (0)