migrate server scripts to python 3
[dyn-nsupdate.git] / server-scripts / checkip
index d4eec23488ba429ae5d4d6312c866e97a29f5a13..55ff34369b96d6a8e2dffc8a18c6e8ca22a32cb7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 # Copyright (c) 2014, Ralf Jung <post@ralfj.de>
 # All rights reserved.
 # 
@@ -25,8 +25,8 @@
 import os
 
 # print headers
-print "Content-Type: text/plain"
-print ""
+print("Content-Type: text/plain")
+print("")
 
 # print content
-print os.environ["REMOTE_ADDR"]
+print(os.environ["REMOTE_ADDR"])