We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d83ade commit 6fde030Copy full SHA for 6fde030
getddkey
@@ -1,6 +1,6 @@
1
-#!/usr/bin/python
+#!/usr/bin/python3
2
import zlib
3
import sys
4
5
-print "http://mydomain.com/cgi-bin/dyndns?name=%s&key=%s"% \
6
- (sys.argv[1],zlib.adler32(sys.argv[1].upper(),1234))
+print("http://mydomain.com/cgi-bin/dyndns?name=%s&key=%s" %
+ (sys.argv[1], zlib.adler32(sys.argv[1].upper().encode('utf-8'), 1234)))
0 commit comments