mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-02 10:20:31 +08:00
Change xmlrpclib importing way
Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com>
This commit is contained in:
@@ -35,11 +35,7 @@ import random
|
||||
import string
|
||||
import kobo.rpmlib
|
||||
import threading
|
||||
try:
|
||||
import xmlrpclib
|
||||
except ImportError:
|
||||
import xmlrpc.client as xmlrpclib
|
||||
|
||||
import six.moves.xmlrpc_client as xmlrpclib
|
||||
import munch
|
||||
from itertools import chain
|
||||
from OpenSSL.SSL import SysCallError
|
||||
|
||||
@@ -41,11 +41,7 @@ from requests.exceptions import ConnectionError
|
||||
from module_build_service.utils import to_text_type
|
||||
|
||||
import koji
|
||||
try:
|
||||
import xmlrpclib
|
||||
except ImportError:
|
||||
import xmlrpc.client as xmlrpclib
|
||||
|
||||
import six.moves.xmlrpc_client as xmlrpclib
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
|
||||
@@ -26,10 +26,7 @@ import tempfile
|
||||
import mock
|
||||
import koji
|
||||
|
||||
try:
|
||||
import xmlrpclib
|
||||
except ImportError:
|
||||
import xmlrpc.client as xmlrpclib
|
||||
import six.moves.xmlrpc_client as xmlrpclib
|
||||
from collections import OrderedDict
|
||||
from module_build_service.utils import to_text_type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user