Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 246431d

Browse files
committed
changed import name in case of conflict
1 parent 15d88cf commit 246431d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/check_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from six.moves.urllib.request import urlopen
1+
from six.moves.urllib.request import urlopen as uo
22
import re
33

44

55
def get_latest():
6-
data = urlopen('https://raw.githubusercontent.com/plotly/plotly.py/' +
7-
'master/plotly/version.py')
6+
data = uo('https://raw.githubusercontent.com/plotly/plotly.py/' +
7+
'master/plotly/version.py')
88
version = [i for i in data][0]
99
latest_version = re.findall(r'([0-9\.]+)', str(version))[0]
1010
return latest_version

0 commit comments

Comments
 (0)