Commit 1de9efb
committed
Use raw string for regex to avoid SyntaxWarning
This fixes the following warnings:
```python
/home/patrick/virtualenvs/conda/envs/hexrdgui/src/hexrdgui/hexrdgui/llnl_import_tool_dialog.py:739: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
image = re.sub("CAMERA-\d{2}-", "CAMERA-*-", selected_file)
/home/patrick/virtualenvs/conda/envs/hexrdgui/src/hexrdgui/hexrdgui/llnl_import_tool_dialog.py:740: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
files = re.sub("-\d{3}.h", "-*.h", image)
```
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>1 parent 1851c39 commit 1de9efb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
740 | | - | |
| 739 | + | |
| 740 | + | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| |||
0 commit comments