Change the xkcd link in comment over https. (GH-5452)

This commit is contained in:
2018-09-14 13:45:00 +08:00 committed by Benjamin Peterson
parent 19003841e9
commit 83df50ea57
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def geohash(latitude, longitude, datedow):
37.857713 -122.544543
'''
# http://xkcd.com/426/
# https://xkcd.com/426/
h = hashlib.md5(datedow).hexdigest()
p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], h[16:32])]
print('%d%s %d%s' % (latitude, p[1:], longitude, q[1:]))