File: syntax_warnings.patch

package info (click to toggle)
paraview 5.13.2%2Bdfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 544,660 kB
  • sloc: cpp: 3,374,605; ansic: 1,332,409; python: 150,381; xml: 122,166; sql: 65,887; sh: 7,317; javascript: 5,262; yacc: 4,417; java: 3,977; perl: 2,363; lex: 1,929; f90: 1,397; makefile: 170; objc: 153; tcl: 59; pascal: 50; fortran: 29
file content (65 lines) | stat: -rw-r--r-- 3,492 bytes parent folder | download | duplicates (2)
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")