diff --git a/tperimeter.py b/tperimeter.py index 2b6c6a3..ef7d066 100644 --- a/tperimeter.py +++ b/tperimeter.py @@ -1,6 +1,6 @@ -#!/usr/local/bin/python +#!/usr/bin/env python # tperimeter.py -# Copyright (c) 2006-2012 TundraWare Inc. All Rights Reserved. +# Copyright (c) 2006-2020 TundraWare Inc. All Rights Reserved. # For Updates See: http://www.tundraware.com/Software/tperimeter # Program Information @@ -32,7 +32,7 @@ def Print(s): - print "[User@%s] %s" % (requestor, s) + print(("[User@%s] %s" % (requestor, s))) ##### # Error/Abort Routine @@ -44,13 +44,13 @@ sys.exit(1) # End of 'Error()' - + ##### # Print The HTML Header #### -print "Content-type: text/html\n\n" +print("Content-type: text/html\n\n") ##### # Process Passed Parameters @@ -92,7 +92,7 @@ if not re.match(IPQuad, address): Error("You Must Specify Address In IP Quad Format") - + # Make sure each quad element is in range