Skip to content

Commit

Permalink
Fix deprecation warnings due to invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Jul 15, 2020
1 parent 716384d commit 0d2d014
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/generate_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

Expand Down
2 changes: 1 addition & 1 deletion src/urh/dev/gr/scripts/__create_gr_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
start_vars, start_blocks = False, True
elif start_blocks and line.strip().startswith("self."):
try:
used_variables.append(re.search("\(([a-z\_0-9]*)[\)\,]", line).group(1))
used_variables.append(re.search(r"\(([a-z\_0-9]*)[\)\,]", line).group(1))
except AttributeError:
pass
elif line.strip().startswith("# Connections"):
Expand Down
2 changes: 1 addition & 1 deletion src/urh/dev/native/PlutoSDR.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def adapt_num_read_samples_to_sample_rate(cls, sample_rate):
def setup_device(cls, ctrl_connection: Connection, device_identifier):
device_identifier = device_identifier if isinstance(device_identifier, str) else ""
try:
device_identifier = re.search("(?<=\[).+?(?=\])", device_identifier).group(0)
device_identifier = re.search(r"(?<=\[).+?(?=\])", device_identifier).group(0)
except (IndexError, AttributeError):
pass

Expand Down
2 changes: 1 addition & 1 deletion tests/TestInstallation.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_linux(self):
self.assertTrue(docker_util.run_image(distribution, rebuild=False), msg=distribution)

def test_windows(self):
"""
r"""
Run the unittests on Windows + Install via Pip
To Fix Windows Error in Guest OS:
Expand Down

0 comments on commit 0d2d014

Please sign in to comment.