Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d88cf commit 246431dCopy full SHA for 246431d
plotly/check_version.py
@@ -1,10 +1,10 @@
1
-from six.moves.urllib.request import urlopen
+from six.moves.urllib.request import urlopen as uo
2
import re
3
4
5
def get_latest():
6
- data = urlopen('https://raw.githubusercontent.com/plotly/plotly.py/' +
7
- 'master/plotly/version.py')
+ data = uo('https://raw.githubusercontent.com/plotly/plotly.py/' +
+ 'master/plotly/version.py')
8
version = [i for i in data][0]
9
latest_version = re.findall(r'([0-9\.]+)', str(version))[0]
10
return latest_version
0 commit comments