Skip to content

Commit 6fde030

Browse files
authored
Update getddkey for python 3
1 parent 6d83ade commit 6fde030

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

getddkey

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
import zlib
33
import sys
44

5-
print "http://mydomain.com/cgi-bin/dyndns?name=%s&key=%s"% \
6-
(sys.argv[1],zlib.adler32(sys.argv[1].upper(),1234))
5+
print("http://mydomain.com/cgi-bin/dyndns?name=%s&key=%s" %
6+
(sys.argv[1], zlib.adler32(sys.argv[1].upper().encode('utf-8'), 1234)))

0 commit comments

Comments
 (0)