# HG changeset patch # User Andrey Skvortsov # Date 1538224729 -10800 # Node ID 5cf1d70b53954cc7a8eea63eee6d1fc82fbe9203 # Parent d00f1430d57a3fc8fb677e33a052015e43507c94 clean etherlab: pep8, E301 expected 2 blank lines, found 1 diff -r d00f1430d57a -r 5cf1d70b5395 etherlab/etherlab.py --- a/etherlab/etherlab.py Sat Sep 29 15:35:22 2018 +0300 +++ b/etherlab/etherlab.py Sat Sep 29 15:38:49 2018 +0300 @@ -89,6 +89,7 @@ if cls: profile_numbers_xpath = EtherCATInfo_XPath("Profile/ProfileNo") + def GetProfileNumbers(self): return [number.text for number in profile_numbers_xpath(self)] setattr(cls, "GetProfileNumbers", GetProfileNumbers) @@ -209,6 +210,7 @@ groups_xpath = EtherCATInfo_XPath("Descriptions/Groups/Group") devices_xpath = EtherCATInfo_XPath("Descriptions/Devices/Device") + def LoadModules(self): self.Library = {}