-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: Fix error edge line in python2.7 #4155
Conversation
@rlaverde now that you did this. Could we add a test to find with a regex or something
|
I added it in the last commit, what do you think? |
bb6a81b
to
7811fb8
Compare
@@ -94,7 +94,7 @@ def get(self, name_or_klass): | |||
:param name_or_klass: Name or class of the panel to retrieve. | |||
:return: The specified panel instance. | |||
""" | |||
if not isinstance(name_or_klass, str): | |||
if not is_text_string(name_or_klass, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rlaverde, this call is wrong because is_text_string
only receives one argument.
@@ -76,7 +76,7 @@ def start(self): | |||
data = page.read() | |||
|
|||
# Needed step for python3 compatibility | |||
if not isinstance(data, str): | |||
if not is_text_string(data, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also wrong, and it's what's making our tests to time out in master because checking if there's a new Spyder version is failing now.
Fixes: #4153