Skip to content

Commit 92b54b1

Browse files
samaityjleveque
authored andcommitted
more changes needed for SNMP docker upgrade to stretch build (#26)
1 parent 4944a64 commit 92b54b1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

sonic_sfp/inf8628.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import print_function
77

88
try:
9-
from sff8024 import type_of_transceiver
10-
from sffbase import sffbase
9+
from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods
10+
from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods
1111
except ImportError as e:
1212
raise ImportError ("%s - required module not found" % e)
1313

sonic_sfp/sff8436.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import getopt
1616
import types
1717
from math import log10
18-
from sff8024 import type_of_transceiver
18+
from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods
1919
from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods
2020
except ImportError as e:
2121
raise ImportError (str(e) + "- required module not found")

sonic_sfp/sff8472.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import getopt
1818
import types
1919
from math import log10
20-
from sff8024 import type_of_transceiver
20+
from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods
2121
from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods
2222
except ImportError as e:
2323
raise ImportError (str(e) + "- required module not found")

sonic_sfp/sfputilbase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .sff8472 import sff8472Dom # Dot module supports both Python 2 and Python 3 using explicit relative import methods
1717
from .sff8436 import sff8436InterfaceId # Dot module supports both Python 2 and Python 3 using explicit relative import methods
1818
from .sff8436 import sff8436Dom # Dot module supports both Python 2 and Python 3 using explicit relative import methods
19-
from inf8628 import inf8628InterfaceId
19+
from .inf8628 import inf8628InterfaceId # Dot module supports both Python 2 and Python 3 using explicit relative import methods
2020
except ImportError as e:
2121
raise ImportError("%s - required module not found" % str(e))
2222

0 commit comments

Comments
 (0)