diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index edc78b827b..b0be7d919b 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -31,14 +31,15 @@ from urllib3 import HTTPSConnectionPool
from urllib3.exceptions import HTTPError
from multiprocessing import Pool
-INFRA_RE = re.compile("\$\(eval \$\(([a-z-]*)-package\)\)")
-URL_RE = re.compile("\s*https?://\S*\s*$")
+INFRA_RE = re.compile(r"\$\(eval \$\(([a-z-]*)-package\)\)")
+URL_RE = re.compile(r"\s*https?://\S*\s*$")
RM_API_STATUS_ERROR = 1
RM_API_STATUS_FOUND_BY_DISTRO = 2
RM_API_STATUS_FOUND_BY_PATTERN = 3
RM_API_STATUS_NOT_FOUND = 4
+
class Package:
all_licenses = list()
all_license_files = list()
@@ -584,7 +585,8 @@ def dump_html_pkg(f, pkg):
if pkg.latest_version[1] is None:
latest_version_text = "Found, but no version"
else:
- latest_version_text = "%s" % (pkg.latest_version[2], str(pkg.latest_version[1]))
+ latest_version_text = "%s" % \
+ (pkg.latest_version[2], str(pkg.latest_version[1]))
latest_version_text += "
"