Skip to content

Commit

Permalink
Merge pull request #4193 from bskjois/removePy2Support
Browse files Browse the repository at this point in the history
Removed python2 imports
  • Loading branch information
YongxueHong authored Nov 25, 2024
2 parents 627f764 + b56f6ac commit cfeec15
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 30 deletions.
6 changes: 1 addition & 5 deletions deps/input_event/input_event_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
import json
import os
import sys
import tkinter
from ctypes import wintypes

try:
import Tkinter as tkinter
except ImportError:
import tkinter

import win32api
import win32con

Expand Down
6 changes: 1 addition & 5 deletions provider/input_event_proxy.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import json
import logging
import os

try:
from queue import Queue
except ImportError:
from Queue import Queue
from queue import Queue

from virttest import data_dir, utils_misc

Expand Down
6 changes: 1 addition & 5 deletions qemu/tests/kvm_unit_test.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import glob
import os
import shutil

try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
from configparser import ConfigParser

from virttest import env_process, utils_misc

Expand Down
7 changes: 1 addition & 6 deletions qemu/tests/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
import shelve
import shutil
import threading
from queue import Queue

import six

try:
from queue import Queue
except ImportError:
from Queue import Queue

from avocado.utils import download, process
from virttest import data_dir, utils_misc, utils_test

Expand Down
6 changes: 1 addition & 5 deletions qemu/tests/qemu_io_blkdebug.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import os
import re

try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
from configparser import ConfigParser

from avocado.utils import process
from virttest import data_dir, error_context, qemu_io, utils_misc
Expand Down
5 changes: 1 addition & 4 deletions qemu/tests/usb_common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
try:
import simplejson as json
except ImportError:
import json
import json
import logging
from collections import OrderedDict

Expand Down

0 comments on commit cfeec15

Please sign in to comment.