-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[FIX] WebView fixes #3148
[FIX] WebView fixes #3148
Conversation
Orange/widgets/utils/webview.py
Outdated
with self.lock: | ||
self.ids.add(id) | ||
self.ids[id] = value | ||
|
||
def __contains__(self, id): | ||
return id in self.ids | ||
|
||
def remove(self, id): |
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.
Maybe this could be renamed to pop?
Codecov Report
@@ Coverage Diff @@
## master #3148 +/- ##
=========================================
Coverage ? 82.35%
=========================================
Files ? 335
Lines ? 58256
Branches ? 0
=========================================
Hits ? 47977
Misses ? 10279
Partials ? 0 |
Orange/widgets/utils/webview.py
Outdated
@@ -556,9 +556,9 @@ def _evalJS(self, code): | |||
if sip.isdeleted(self): | |||
return |
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.
Lint suggests that you return None here.
(Either all return statements in a function should return an expression, or none of them should.)
Issue
Description of changes
<svg>
tag results in ValueError (and not IndexError).Includes