From b6c8dbced134e670106c02c328763d7a1a12d391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gonz=C3=A1lez?= Date: Thu, 18 Jan 2018 17:35:17 +0100 Subject: [PATCH] io: change visibility of io sample parser methods to private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Héctor González --- digi/xbee/io.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/digi/xbee/io.py b/digi/xbee/io.py index 731661d..966d0c3 100644 --- a/digi/xbee/io.py +++ b/digi/xbee/io.py @@ -1,4 +1,4 @@ -# Copyright 2017, Digi International Inc. +# Copyright 2017, 2018, Digi International Inc. # # This Source Code Form is subject to the terms of the Mozilla Public # 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): self.__io_sample_payload = io_sample_payload if len(self.__io_sample_payload) % 2 != 0: - self.parse_raw_io_sample() + self.__parse_raw_io_sample() else: - self.parse_io_sample() + self.__parse_io_sample() def __str__(self): s = "{" @@ -325,7 +325,7 @@ def min_io_sample_payload(): """ return IOSample.__MIN_IO_SAMPLE_PAYLOAD_LENGTH - def parse_raw_io_sample(self): + def __parse_raw_io_sample(self): """ Parses the information contained in the IO sample bytes reading the value of each configured DIO and ADC. @@ -378,7 +378,7 @@ def parse_raw_io_sample(self): data_index += 2 adc_index += 1 - def parse_io_sample(self): + def __parse_io_sample(self): """ Parses the information contained in the IO sample bytes reading the value of each configured DIO and ADC.