Commit 8044c340 authored by Ivan Tyagov's avatar Ivan Tyagov

Merge remote-tracking branch 'upstream/master'

parents 03db5a01 a4f34eaa
......@@ -15,10 +15,14 @@ Topic :: Software Development :: Libraries :: Python Modules
if not os.path.exists(''):
import cStringIO, hashlib, urllib, zipfile
mock_py = zipfile.ZipFile(cStringIO.StringIO(urllib.urlopen(
import cStringIO, hashlib,subprocess, urllib, zipfile
x = ''
x = subprocess.check_output(('git', 'cat-file', 'blob', x))
except (OSError, subprocess.CalledProcessError):
x = urllib.urlopen(
'' + x).read()
mock_py = zipfile.ZipFile(cStringIO.StringIO(x)).read('')
if hashlib.md5(mock_py).hexdigest() != '79f42f390678e5195d9ce4ae43bd18ec':
raise EnvironmentError("MD5 checksum mismatch downloading ''")
open('', 'w').write(mock_py)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment