summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2023-11-28 12:37:36 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2023-12-14 10:57:30 +0100
commita54d18cb1c4686f6ec5db2087f6ce6a8cd5377e9 (patch)
tree5082ef35eb5f985cf7d9387c8b3f27279cf2013b
parent5d1d44d18a9f122b4a34bc47562b98923cf80072 (diff)
topotests: remove python2 support
Remove python2 support Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
-rw-r--r--tests/topotests/lib/common_config.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py
index e19d96f918..598db84e63 100644
--- a/tests/topotests/lib/common_config.py
+++ b/tests/topotests/lib/common_config.py
@@ -14,6 +14,7 @@ import socket
import subprocess
import sys
import traceback
+import configparser
from collections import OrderedDict
from copy import deepcopy
from datetime import datetime, timedelta
@@ -21,12 +22,6 @@ from functools import wraps
from re import search as re_search
from time import sleep
-try:
- # Imports from python2
- import ConfigParser as configparser
-except ImportError:
- # Imports from python3
- import configparser
from lib.micronet import comm_error
from lib.topogen import TopoRouter, get_topogen