Fixed RUF039 (unraw-re-pattern)

This commit is contained in:
Teal Dulcet committed 2025-06-20 02:39:59 -07:00
1 parent e73771be5f
commit eae0db9df1
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ def sslyze(opts, port, ok_ciphers):
# Failed. Just output the error.
out = re.sub("[\\w\\W]*CHECKING HOST\\(S\\) AVAILABILITY\n\\s*-+\n", "", out) # chop off header that shows the host we queried
out = re.sub("[\\w\\W]*SCAN RESULTS FOR.*\n\\s*-+\n", "", out) # chop off header that shows the host we queried
out = re.sub("SCAN COMPLETED IN .*", "", out)
out = re.sub(r"SCAN COMPLETED IN .*", "", out)
out = out.rstrip(" \n-") + "\n"
# Print.