fully remove py23_compat

This commit is contained in:
Petr Klíma authored and GitHub committed 2020-10-28 12:56:34 +01:00
1 parent 1ff7c2a090
commit 34ac2e5d4c
1 file changed
+6 -7
+6 -7
View File
@@ -36,7 +36,6 @@ from napalm.base.exceptions import (
CommandErrorException,
)
from napalm.base.utils import py23_compat
import napalm.base.helpers
@@ -245,15 +244,15 @@ class S350Driver(NetworkDriver):
if not line:
continue
interface = line.split()[0]
interfaces.append(py23_compat.text_type(interface))
interfaces.append(str(interface))
return {
'fqdn': py23_compat.text_type(fqdn),
'hostname': py23_compat.text_type(hostname),
'fqdn':str(fqdn),
'hostname': str(hostname),
'interface_list': interfaces,
'model': py23_compat.text_type(model),
'os_version': py23_compat.text_type(os_version),
'serial_number': py23_compat.text_type(serial_number),
'model': str(model),
'os_version': str(os_version),
'serial_number': str(serial_number),
'uptime': uptime,
'vendor': u'Cisco',
}