From 85d3d8a8beef88bb2fb79e9d891c5bf7b227b033 Mon Sep 17 00:00:00 2001 From: Sophie Brun Date: Mon, 28 Oct 2024 16:28:56 +0100 Subject: [PATCH] Fix SyntaxWarning in Python 3.12 we have a Syntax Warning: /usr/lib/python3/dist-packages/minikerberos/examples/getNT.py:20: SyntaxWarning: invalid escape sequence '\A' parser.add_argument('kerberos_url', help='The kerberos target URL. Example: "kerberos+pfx://TEST.corp\Administrator:admin@10.10.10.2/?certdata=test.pfx"') --- minikerberos/examples/getNT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minikerberos/examples/getNT.py b/minikerberos/examples/getNT.py index 1c843b9..31e4ce7 100644 --- a/minikerberos/examples/getNT.py +++ b/minikerberos/examples/getNT.py @@ -17,7 +17,7 @@ def main(): import argparse parser = argparse.ArgumentParser(description='Fetches the NT hash for the user. PKI auth required.', formatter_class=argparse.RawDescriptionHelpFormatter, epilog = kerberos_url_help_epilog) - parser.add_argument('kerberos_url', help='The kerberos target URL. Example: "kerberos+pfx://TEST.corp\Administrator:admin@10.10.10.2/?certdata=test.pfx"') + parser.add_argument('kerberos_url', help=r'The kerberos target URL. Example: "kerberos+pfx://TEST.corp\Administrator:admin@10.10.10.2/?certdata=test.pfx"') parser.add_argument('-v', '--verbose', action='count', default=0) args = parser.parse_args() @@ -32,4 +32,4 @@ def main(): if __name__ == '__main__': - main() \ No newline at end of file + main()