1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
Index: paraview/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/cisview.py
===================================================================
--- paraview.orig/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/cisview.py 2024-10-18 20:29:04.161836157 +0200
+++ paraview/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/cisview.py 2024-10-18 20:29:04.153835466 +0200
@@ -265,7 +265,7 @@
self.cdb.tablename, image, layer, channel)
results = self.cdb.execute(query)
- if not results[0][0] is "":
+ if not results[0][0] == "":
data["colormap"]["type"] = "url"
data["colormap"]["url"] = results[0][0]
Index: paraview/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/imageview.py
===================================================================
--- paraview.orig/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/imageview.py 2024-10-18 20:29:04.161836157 +0200
+++ paraview/ThirdParty/cinemasci/paraview/tpl/cinemasci/cis/imageview.py 2024-10-18 20:29:04.157835811 +0200
@@ -205,7 +205,7 @@
if "type" in params:
# for now, parse as a local file
# TODO: add logic to detect and load remote URLs
- if params["type"] is "url":
+ if params["type"] == "url":
# this path is currently required to be a ParaView json colormap
# local to the cinema database
fullpath = os.path.join(self.cisview.cdb.path, params["url"])
Index: paraview/VTK/Web/Python/vtkmodules/web/testing.py
===================================================================
--- paraview.orig/VTK/Web/Python/vtkmodules/web/testing.py 2024-10-18 20:29:04.161836157 +0200
+++ paraview/VTK/Web/Python/vtkmodules/web/testing.py 2024-10-18 20:29:04.157835811 +0200
@@ -684,7 +684,7 @@
# The test name will be generated from the python script name, so
# match and capture a bunch of contiguous characters which are
# not '.', '\', or '/', followed immediately by the string '.py'.
- fnamePattern = re.compile("([^\.\/\\\]+)\.py")
+ fnamePattern = re.compile(r"([^\.\/\\\]+)\.py")
fmatch = re.search(fnamePattern, testScriptFile)
if fmatch:
testName = fmatch.group(1)
Index: paraview/VTK/Wrapping/Python/vtkmodules/util/vtkMethodParser.py
===================================================================
--- paraview.orig/VTK/Wrapping/Python/vtkmodules/util/vtkMethodParser.py 2024-10-18 20:29:04.161836157 +0200
+++ paraview/VTK/Wrapping/Python/vtkmodules/util/vtkMethodParser.py 2024-10-18 20:29:04.157835811 +0200
@@ -301,7 +301,7 @@
self.dir_get_meths = dir_p.get_methods ()
self._get_str_obj (vtk_obj)
- patn = re.compile (" \S")
+ patn = re.compile (r" \S")
for method in self.methods[:]:
if not patn.match (method):
Index: paraview/Wrapping/Python/paraview/smtesting.py
===================================================================
--- paraview.orig/Wrapping/Python/paraview/smtesting.py 2024-10-18 20:29:04.161836157 +0200
+++ paraview/Wrapping/Python/paraview/smtesting.py 2024-10-18 20:29:28.307937259 +0200
@@ -90,7 +90,7 @@
except:
return Error("Failed to open state file %s" % filename)
- regExp = re.compile("\${DataDir}")
+ regExp = re.compile(r"\${DataDir}")
data = regExp.sub(DataDir, data)
if not parser.Parse(data):
return Error("Failed to parse")
|