spacewalk-certs-tools/SOURCES/f8d386fbd42339912284bd9ef4d6be2e065958b9.patch

32 lines
1.1 KiB
Diff

From f8d386fbd42339912284bd9ef4d6be2e065958b9 Mon Sep 17 00:00:00 2001
From: Michael Mraka <michael.mraka@redhat.com>
Date: Fri, 20 Sep 2019 15:07:59 +0200
Subject: [PATCH] sys.stderr.write() expects string not bytes
fixing
Traceback (most recent call last):
File "/usr/bin/rhn-ssl-tool", line 50, in <module>
sys.exit(mod.main() or 0)
File "/usr/lib/python3.7/site-packages/certs/rhn_ssl_tool.py", line 1298, in main
writeError(e)
File "/usr/lib/python3.7/site-packages/certs/rhn_ssl_tool.py", line 1275, in writeError
sys.stderr.write(bstr('\nERROR: %s\n' % e))
TypeError: write() argument must be str, not bytes
---
spacewalk/certs-tools/rhn_ssl_tool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spacewalk/certs-tools/rhn_ssl_tool.py b/spacewalk/certs-tools/rhn_ssl_tool.py
index 7d28b24063b..ae761576c5f 100755
--- a/spacewalk/certs-tools/rhn_ssl_tool.py
+++ b/spacewalk/certs-tools/rhn_ssl_tool.py
@@ -1272,7 +1272,7 @@ def main():
"""
def writeError(e):
- sys.stderr.write(bstr('\nERROR: %s\n' % e))
+ sys.stderr.write('\nERROR: %s\n' % e)
ret = 0
try: