Skip to content

Commit

Permalink
Fix SyntaxWarning
Browse files Browse the repository at this point in the history
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:[email protected]/?certdata=test.pfx"')
  • Loading branch information
sbrun committed Oct 28, 2024
1 parent d2cd8ea commit 85d3d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minikerberos/examples/getNT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]/?certdata=test.pfx"')
parser.add_argument('kerberos_url', help=r'The kerberos target URL. Example: "kerberos+pfx://TEST.corp\Administrator:[email protected]/?certdata=test.pfx"')
parser.add_argument('-v', '--verbose', action='count', default=0)

args = parser.parse_args()
Expand All @@ -32,4 +32,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit 85d3d8a

Please sign in to comment.