Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0895003

Browse filesBrowse files
committed
better regex, and update message
1 parent 2dd7c11 commit 0895003
Copy full SHA for 0895003

File tree

Expand file treeCollapse file tree

2 files changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-3
lines changed

‎plotly/__init__.py

Copy file name to clipboardExpand all lines: plotly/__init__.py
+1-2Lines 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

Copy file name to clipboardExpand all lines: plotly/check_version.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.