diff options
| author | Mike Schuchardt <mikes@lunarg.com> | 2019-07-22 16:52:06 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2019-07-24 06:48:13 -0600 |
| commit | aafd3a949e35d2d3964f926d5a2a5d15a85c094e (patch) | |
| tree | 74c69e1799018612842a45608a1b2a01653ddd09 /scripts | |
| parent | b26f1d802a7162c2b55fbacf7168e65d7e130d35 (diff) | |
| download | usermoji-aafd3a949e35d2d3964f926d5a2a5d15a85c094e.tar.xz | |
scripts: Fix mock_icd_generator syntax warnings
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 49fe2611..e1dced9f 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -1024,7 +1024,7 @@ class MockICDOutputGenerator(OutputGenerator): def paramIsPointer(self, param): ispointer = False for elem in param: - if ((elem.tag is not 'type') and (elem.tail is not None)) and '*' in elem.tail: + if ((elem.tag != 'type') and (elem.tail is not None)) and '*' in elem.tail: ispointer = True return ispointer @@ -1052,7 +1052,7 @@ class MockICDOutputGenerator(OutputGenerator): self.header = False if (genOpts.protectFile and self.genOpts.filename and 'h' == self.genOpts.filename[-1]): self.header = True - headerSym = '__' + re.sub('\.h', '_h_', os.path.basename(self.genOpts.filename)) + headerSym = '__' + re.sub(r'\.h', '_h_', os.path.basename(self.genOpts.filename)) write('#ifndef', headerSym, file=self.outFile) write('#define', headerSym, '1', file=self.outFile) self.newline() |
