summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2016-08-24 15:37:16 +0200
committerIgor Gnatenko <ignatenko@redhat.com>2016-08-24 15:37:16 +0200
commit30d472c8af086df077e6cf047a87fdaf93c9b21b (patch)
tree357709f55029b76534715e12f900d0452d38b1aa
parenta82119bf352400ee891105820b804bf946d5c6ee (diff)
downloadrpm-30d472c8af086df077e6cf047a87fdaf93c9b21b.tar.gz
pythondistdeps.py: add forgotten import
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
-rwxr-xr-xscripts/pythondistdeps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pythondistdeps.py b/scripts/pythondistdeps.py
index 76017f394..e4b99e209 100755
--- a/scripts/pythondistdeps.py
+++ b/scripts/pythondistdeps.py
@@ -15,6 +15,7 @@ from getopt import getopt
from os.path import basename, dirname, isdir, sep
from sys import argv, stdin, version
from distutils.sysconfig import get_python_lib
+from warnings import warn
opts, args = getopt(
@@ -108,7 +109,7 @@ for f in files:
dist = Distribution.from_location(path_item, dist_name, metadata)
# Check if py_version is defined in the file
if not dist.py_version:
- warnings.warn("Version for {!r} has not been found".format(dist), RuntimeWarning)
+ warn("Version for {!r} has not been found".format(dist), RuntimeWarning)
continue
if (Provides_PyMajorVer_Variant or legacy_Provides or legacy) and Provides:
# Get the Python major version