Address inactive but legacy print calls found with code checking. (#78581)

* Address inactive but legacy print calls found with code checking.

* Per bcoca remove the inactive legacy print statements
pull/78589/head
Andrew Latham 2 years ago committed by GitHub
parent 4c8b8a06be
commit 3d6a60b481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -548,9 +548,7 @@ class DnfModule(YumDnf):
e2 = str(e2)
v2 = str(v2)
r2 = str(r2)
# print '%s, %s, %s vs %s, %s, %s' % (e1, v1, r1, e2, v2, r2)
rc = dnf.rpm.rpm.labelCompare((e1, v1, r1), (e2, v2, r2))
# print '%s, %s, %s vs %s, %s, %s = %s' % (e1, v1, r1, e2, v2, r2, rc)
return rc
def _ensure_dnf(self):

@ -142,7 +142,6 @@ class ServiceScanService(BaseService):
def _list_rh(self, services):
# print '%s --status-all | grep -E "is (running|stopped)"' % service_path
p = re.compile(
r'(?P<service>.*?)\s+[0-9]:(?P<rl0>on|off)\s+[0-9]:(?P<rl1>on|off)\s+[0-9]:(?P<rl2>on|off)\s+'
r'[0-9]:(?P<rl3>on|off)\s+[0-9]:(?P<rl4>on|off)\s+[0-9]:(?P<rl5>on|off)\s+[0-9]:(?P<rl6>on|off)')

Loading…
Cancel
Save