Remove py23_compat.text_type usage

This commit is contained in:
Brad Walker
2020-05-16 10:26:39 -06:00
parent df1d827038
commit b287f3d6c7
2 changed files with 30 additions and 33 deletions

View File

@@ -5,7 +5,6 @@ import pytest
from napalm.base.test import conftest as parent_conftest
from napalm.base.test.double import BaseTestDouble
from napalm.base.utils import py23_compat
from napalm_vyos import vyos
@@ -55,5 +54,4 @@ class FakeVyOSDevice(BaseTestDouble):
def send_command(self, command, **kwargs):
filename = '{}.text'.format(self.sanitize_text(command))
full_path = self.find_file(filename)
result = self.read_txt_file(full_path)
return py23_compat.text_type(result)
return self.read_txt_file(full_path)