From 92b54b1984db0b71196e4fe68cc5a09796fd185c Mon Sep 17 00:00:00 2001 From: Sangita Maity Date: Wed, 3 Apr 2019 14:06:39 -0700 Subject: [PATCH] more changes needed for SNMP docker upgrade to stretch build (#26) --- sonic_sfp/inf8628.py | 4 ++-- sonic_sfp/sff8436.py | 2 +- sonic_sfp/sff8472.py | 2 +- sonic_sfp/sfputilbase.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sonic_sfp/inf8628.py b/sonic_sfp/inf8628.py index 3a0eeaff10a9..c6b6ea011fa6 100644 --- a/sonic_sfp/inf8628.py +++ b/sonic_sfp/inf8628.py @@ -6,8 +6,8 @@ from __future__ import print_function try: - from sff8024 import type_of_transceiver - from sffbase import sffbase + from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods + from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods except ImportError as e: raise ImportError ("%s - required module not found" % e) diff --git a/sonic_sfp/sff8436.py b/sonic_sfp/sff8436.py index c709819f2f21..98f6a0f12eff 100644 --- a/sonic_sfp/sff8436.py +++ b/sonic_sfp/sff8436.py @@ -15,7 +15,7 @@ import getopt import types from math import log10 - from sff8024 import type_of_transceiver + from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods except ImportError as e: raise ImportError (str(e) + "- required module not found") diff --git a/sonic_sfp/sff8472.py b/sonic_sfp/sff8472.py index 3853fb859c89..ba0c6d0810ef 100644 --- a/sonic_sfp/sff8472.py +++ b/sonic_sfp/sff8472.py @@ -17,7 +17,7 @@ import getopt import types from math import log10 - from sff8024 import type_of_transceiver + from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods except ImportError as e: raise ImportError (str(e) + "- required module not found") diff --git a/sonic_sfp/sfputilbase.py b/sonic_sfp/sfputilbase.py index 21b2ffb175a7..772c9c7257ce 100644 --- a/sonic_sfp/sfputilbase.py +++ b/sonic_sfp/sfputilbase.py @@ -16,7 +16,7 @@ from .sff8472 import sff8472Dom # Dot module supports both Python 2 and Python 3 using explicit relative import methods from .sff8436 import sff8436InterfaceId # Dot module supports both Python 2 and Python 3 using explicit relative import methods from .sff8436 import sff8436Dom # Dot module supports both Python 2 and Python 3 using explicit relative import methods - from inf8628 import inf8628InterfaceId + from .inf8628 import inf8628InterfaceId # Dot module supports both Python 2 and Python 3 using explicit relative import methods except ImportError as e: raise ImportError("%s - required module not found" % str(e))