Staging
v0.5.1
https://github.com/python/cpython
Revision 96fb828da305b18336b8d74b14f479c4f286cf7b authored by Miss Islington (bot) on 26 May 2018, 21:57:01 UTC, committed by GitHub on 26 May 2018, 21:57:01 UTC

The failure may be due to the use oF ZFS, a case we already ignore
for Solaris-based systems where ZFS is frequently used.
(cherry picked from commit 09c4a7dee2eb39b515e5f499f184257cdbe9cb42)

Co-authored-by: Ned Deily <nad@python.org>
1 parent e60f6e1
Raw File
Tip revision: 96fb828da305b18336b8d74b14f479c4f286cf7b authored by Miss Islington (bot) on 26 May 2018, 21:57:01 UTC
bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)
Tip revision: 96fb828
antigravity.py

import webbrowser
import hashlib

webbrowser.open("https://xkcd.com/353/")

def geohash(latitude, longitude, datedow):
    '''Compute geohash() using the Munroe algorithm.

    >>> geohash(37.421542, -122.085589, b'2005-05-26-10458.68')
    37.857713 -122.544543

    '''
    # http://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:]))
back to top