- print "There was an error while updating the DNS: Return code %d" % p.returncode
- if stdout: print stdout
- if stderr: print stderr
+ print("There was an error while updating the DNS: Return code %d" % p.returncode)
+ if stdout: print(stdout)
+ if stderr: print(stderr)