Skip to content

Commit 324240e

Browse files
authored
Merge pull request #451 from LinglingXiang/master
when update to latest attrs, warning message display in pushsource
2 parents c6611d4 + 1e581c5 commit 324240e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/pushsource/_impl/backend/errata_source/errata_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import subprocess
66
import tempfile
77
import threading
8-
import xmlrpc.client as xmlrpc_client
8+
import xmlrpc.client as xmlrpc_client # nosec B411
99
from urllib.parse import urljoin
1010
import warnings
1111

src/pushsource/_impl/compat_attr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from importlib.metadata import version
12
import attr
23

34
# Wrappers for attr module to deal with some incompatibilities between versions
45

56

6-
ATTR_VERSION = tuple(int(x) for x in attr.__version__.split(".")[0:2])
7+
ATTR_VERSION = tuple(int(x) for x in (version("attrs")).split(".")[0:2])
78

89

910
def s():

tests/errata/fake_errata_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from mock import Mock
44
import yaml
55
import json
6-
from xmlrpc.client import Fault
6+
from xmlrpc.client import Fault # nosec B411
77

88
import requests
99

0 commit comments

Comments
 (0)