Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
cinema_python
Commits
8ff36e70
Commit
8ff36e70
authored
Mar 03, 2020
by
Cory Quammen
Browse files
Replace invalid use of 'is' keyword
'is' checks identity, not equality. In Python 3.8, this usage results in a warning.
parent
b241b6e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
cinema_python/adaptors/paraview/pv_introspect.py
View file @
8ff36e70
...
...
@@ -195,7 +195,7 @@ def get_pipeline():
for
proxy
in
proxies
:
source
=
paraview
.
simple
.
FindSource
(
proxy
[
'name'
])
numberOfProducers
=
source
.
GetNumberOfProducers
()
if
proxy
[
'parent'
]
is
'0'
and
numberOfProducers
>
0
:
if
proxy
[
'parent'
]
==
'0'
and
numberOfProducers
>
0
:
# this proxy is the result of a merge
parents
=
[]
for
i
in
xrange
(
numberOfProducers
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment