Skip to content

Commit 0d2d014

Browse files
committed
Fix deprecation warnings due to invalid escape sequences.
1 parent 716384d commit 0d2d014

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

data/generate_ui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def gen(force=False):
88
if sys.platform == "win32":
9-
bindir = "c:\Python34\Lib\site-packages\PyQt5"
9+
bindir = r"c:\Python34\Lib\site-packages\PyQt5"
1010
else:
1111
bindir = "/usr/bin"
1212

src/urh/dev/gr/scripts/__create_gr_script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
start_vars, start_blocks = False, True
2020
elif start_blocks and line.strip().startswith("self."):
2121
try:
22-
used_variables.append(re.search("\(([a-z\_0-9]*)[\)\,]", line).group(1))
22+
used_variables.append(re.search(r"\(([a-z\_0-9]*)[\)\,]", line).group(1))
2323
except AttributeError:
2424
pass
2525
elif line.strip().startswith("# Connections"):

src/urh/dev/native/PlutoSDR.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def adapt_num_read_samples_to_sample_rate(cls, sample_rate):
3131
def setup_device(cls, ctrl_connection: Connection, device_identifier):
3232
device_identifier = device_identifier if isinstance(device_identifier, str) else ""
3333
try:
34-
device_identifier = re.search("(?<=\[).+?(?=\])", device_identifier).group(0)
34+
device_identifier = re.search(r"(?<=\[).+?(?=\])", device_identifier).group(0)
3535
except (IndexError, AttributeError):
3636
pass
3737

tests/TestInstallation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_linux(self):
7777
self.assertTrue(docker_util.run_image(distribution, rebuild=False), msg=distribution)
7878

7979
def test_windows(self):
80-
"""
80+
r"""
8181
Run the unittests on Windows + Install via Pip
8282
8383
To Fix Windows Error in Guest OS:

0 commit comments

Comments
 (0)