Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
neoppod
Commits
8f10fa61
Commit
8f10fa61
authored
Jul 13, 2016
by
Ivan Tyagov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use working link, still file content updated thus md5sum needs correction too.
parent
4dfdf05a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
setup.py
setup.py
+2
-2
No files found.
setup.py
View file @
8f10fa61
...
...
@@ -17,9 +17,9 @@ Topic :: Software Development :: Libraries :: Python Modules
if
not
os
.
path
.
exists
(
'mock.py'
):
import
cStringIO
,
hashlib
,
urllib
,
zipfile
mock_py
=
zipfile
.
ZipFile
(
cStringIO
.
StringIO
(
urllib
.
urlopen
(
'http://
downloads.sf.net/sourceforge/python-mock
/pythonmock-0.1.0.zip'
'http://
ufpr.dl.sourceforge.net/project/python-mock/python-mock/version%200.1.0
/pythonmock-0.1.0.zip'
).
read
())).
read
(
'mock.py'
)
if
hashlib
.
md5
(
mock_py
).
hexdigest
()
!=
'7
9f42f390678e5195d9ce4ae43bd18ec
'
:
if
hashlib
.
md5
(
mock_py
).
hexdigest
()
!=
'7
f51aaf031f7dd022e604a8567f8e52b
'
:
raise
EnvironmentError
(
"MD5 checksum mismatch downloading 'mock.py'"
)
open
(
'mock.py'
,
'w'
).
write
(
mock_py
)
...
...
Ivan Tyagov
@Tyagov
mentioned in commit
3b10ae55
·
Jul 13, 2016
mentioned in commit
3b10ae55
mentioned in commit 3b10ae5513431ea6175a02aa3de5bb7fe54e22a0
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment