This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18056 ) Change subject: powersupply_sispm: import sispm and usb modules on first use ...................................................................... powersupply_sispm: import sispm and usb modules on first use Change-Id: I6045bb739e5c69972014a9d27be3a24b7ad61c9a --- M src/osmo_gsm_tester/obj/powersupply_sispm.py 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/56/18056/1 diff --git a/src/osmo_gsm_tester/obj/powersupply_sispm.py b/src/osmo_gsm_tester/obj/powersupply_sispm.py index d1b244f..0b1ad07 100644 --- a/src/osmo_gsm_tester/obj/powersupply_sispm.py +++ b/src/osmo_gsm_tester/obj/powersupply_sispm.py @@ -17,9 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import sispm -from usb.core import USBError - from ..core import log from ..core.event_loop import MainLoop from .powersupply import PowerSupply @@ -77,6 +74,10 @@ ######################## def __init__(self, conf): super().__init__(conf, 'sispm') + + import sispm + from usb.core import USBError + mydevid = conf.get('device') if mydevid is None: raise log.Error('No "device" attribute provided in supply conf!') -- To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18056 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-Change-Id: I6045bb739e5c69972014a9d27be3a24b7ad61c9a Gerrit-Change-Number: 18056 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200505/d77cd84f/attachment.htm>