python3: fix bgp reggression

fix the c0590ea903 commit.

Reported-by: Toshiki Tsuboi <t.tsubo2000@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Toshiki Tsuboi <t.tsubo2000@gmail.com>
This commit is contained in:
FUJITA Tomonori 2015-07-01 10:44:01 +09:00
parent ffb409135e
commit fe128c1172

View File

@ -1,4 +1,4 @@
import io
import six
class RouteFormatterMixin(object):
@ -17,7 +17,12 @@ class RouteFormatterMixin(object):
@classmethod
def _format_family(cls, dest_list):
if six.PY3:
import io
msg = io.StringIO()
else:
import StringIO
msg = StringIO.StringIO()
def _append_path_info(buff, path, is_best, show_prefix):
aspath = path.get('aspath')