Skip to content

Commit 6659067

Browse files
authored
Merge pull request #298 from toadstorm/henry_dev
Henry dev
2 parents e37677b + 7aa599c commit 6659067

16 files changed

+9
-3
lines changed

otls/MOPS_Align.hda

-9 Bytes
Binary file not shown.

otls/MOPS_Audio_Falloff.hda

-1.06 KB
Binary file not shown.

otls/MOPS_Combine_Falloffs.hda

-289 Bytes
Binary file not shown.

otls/MOPS_FalloffFromAttribute.hda

28 Bytes
Binary file not shown.

otls/MOPS_Noise_Falloff.hda

-4 Bytes
Binary file not shown.

otls/MOPS_Object_Falloff.hda

167 Bytes
Binary file not shown.

otls/MOPS_Plain_Falloff.hda

-24 Bytes
Binary file not shown.

otls/MOPS_Remap_Falloff.hda

-253 Bytes
Binary file not shown.

otls/MOPS_Shape_Falloff.hda

160 Bytes
Binary file not shown.

otls/MOPS_Spline_Falloff.hda

425 Bytes
Binary file not shown.

otls/MOPS_Spread_Falloff.hda

-12.6 KB
Binary file not shown.

otls/MOPS_Spring_Modifier.hda

0 Bytes
Binary file not shown.

otls/MOPS_Texture_Falloff.hda1.hda

-32 Bytes
Binary file not shown.

otls/MOPS_instancer.hda

-299 Bytes
Binary file not shown.

otls/MOPS_transform.hda

-132 Bytes
Binary file not shown.

scripts/python/mops_updater.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import json
2-
import urllib2
2+
try:
3+
from urllib.request import urlopen
4+
from urllib.request import Request
5+
except:
6+
from urllib2 import urlopen
7+
from urllib2.request import Request
8+
39
import contextlib
410
import ssl
511
import os
@@ -69,7 +75,7 @@ def get_releases():
6975
:return: a list of releases (version numbers).
7076
"""
7177
releases = list()
72-
with contextlib.closing(urllib2.urlopen(urllib2.Request(MOPS_URL + "/releases"), context=ssl._create_unverified_context())) as response:
78+
with contextlib.closing(urlopen(Request(MOPS_URL + "/releases"), context=ssl._create_unverified_context())) as response:
7379
data = response.read()
7480
# print(data)
7581
if data == "":
@@ -97,7 +103,7 @@ def get_download_path(release):
97103
"""
98104
# response = urllib.urlopen(MOPS_URL + "/releases/tags/" + release)
99105
jdata = dict()
100-
with contextlib.closing(urllib2.urlopen(urllib2.Request(MOPS_URL + "/releases/tags/" + release), context=ssl._create_unverified_context())) as response:
106+
with contextlib.closing(urlopen(Request(MOPS_URL + "/releases/tags/" + release), context=ssl._create_unverified_context())) as response:
101107
data = response.read()
102108
# print(data)
103109
if data == "":

0 commit comments

Comments
 (0)