summaryrefslogtreecommitdiffstats
path: root/base/server/python
diff options
context:
space:
mode:
Diffstat (limited to 'base/server/python')
-rw-r--r--base/server/python/pki/server/__init__.py6
-rw-r--r--base/server/python/pki/server/deployment/pkihelper.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/base/server/python/pki/server/__init__.py b/base/server/python/pki/server/__init__.py
index 357bad3c3..503227470 100644
--- a/base/server/python/pki/server/__init__.py
+++ b/base/server/python/pki/server/__init__.py
@@ -858,7 +858,11 @@ class Tomcat(object):
output = output.decode('utf-8')
# find "Server version: Apache Tomcat/<major version>.<minor version>"
- match = re.search(r'^Server version:[^/]*/(\d+).*$', output, re.MULTILINE)
+ match = re.search(
+ r'^Server version:[^/]*/(\d+).*$',
+ output,
+ re.MULTILINE # pylint: disable=no-member
+ )
if not match:
raise Exception('Unable to determine Tomcat version')
diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py
index 2e276f522..051778d09 100644
--- a/base/server/python/pki/server/deployment/pkihelper.py
+++ b/base/server/python/pki/server/deployment/pkihelper.py
@@ -2721,7 +2721,11 @@ class Modutil:
output = output.decode('utf-8')
# find modules from lines such as '1. NSS Internal PKCS #11 Module'
- modules = re.findall(r'^ +\d+\. +(.*)$', output, re.MULTILINE)
+ modules = re.findall(
+ r'^ +\d+\. +(.*)$',
+ output,
+ re.MULTILINE # pylint: disable=no-member
+ )
if modulename not in modules:
config.pki_log.info(