8000 better regex, and update message · abudata/plotly.py@0895003 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0895003

Browse files
committed
better regex, and update message
1 parent 2dd7c11 commit 0895003

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plotly/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@
4040
"You're currently running {old}".format(old=__version__) +
4141
", while the latest version is {}".format(_latest))
4242
else:
43-
print("Plotly is currently up to date.\n" +
44-
"Plotly version: {}".format(__version__))
43+
print("Plotly {} is currently up to date.\n".format(__version__))

plotly/check_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def get_latest():
66
os.system('pip show plotly > pip_version.txt')
77
with open('pip_version.txt', 'r') as file:
88
output = [i for i in file][2]
9-
latest_version = re.findall(r'\s.*\n', output)[0][1:-1]
9+
latest_version = re.findall(r'([0-9\.]+)', output)[0]
1010
return latest_version
1111

1212

0 commit comments

Comments
 (0)
0