Skip to content

Commit dafeea0

Browse files
authored
Merge pull request #12 from romangolev/dev
Dev
2 parents 681f8bb + 5308678 commit dafeea0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/core/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# extension library file
22

33
import os.path as op
4-
import urllib2
54
from System import Version
65

76
class Core(object):
@@ -20,6 +19,10 @@ def get_local_version():
2019

2120
# Get version inside the github repository
2221
def get_git_version():
22+
try:
23+
import urllib2
24+
except ImportError:
25+
import urllib.request as urllib2
2326
data = urllib2.urlopen('https://raw.githubusercontent.com/romangolev/pyArchitect/main/lib/core/version')
2427
for line in data:
2528
gitversion = line

lib/core/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.2
1+
1.3.3

0 commit comments

Comments
 (0)