diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:02:02 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:09:00 -0500 |
commit | 76df995ba69ef5d790462856b3edbd42b28b906a (patch) | |
tree | 1acab97d1dc34ffa16d0fb723346675184f649c3 /mesonbuild/compilers | |
parent | fb595294587a70ae67622b5c03a9d3e46a37d4fa (diff) | |
download | meson-76df995ba69ef5d790462856b3edbd42b28b906a.zip meson-76df995ba69ef5d790462856b3edbd42b28b906a.tar.gz meson-76df995ba69ef5d790462856b3edbd42b28b906a.tar.bz2 |
raw string literals are next to godliness
Invalid escape sequences are deprecated and will be removed from a
future version of python. Use r"" to define them so they remain
readable.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index bbe6e95..733e362 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -186,7 +186,7 @@ class CudaCompiler(Compiler): @classmethod def _shield_nvcc_list_arg(cls, arg: str, listmode: bool=True) -> str: - """ + r""" Shield an argument against both splitting by NVCC's list-argument parse logic, and interpretation by any shell. @@ -256,7 +256,7 @@ class CudaCompiler(Compiler): # Shield individual strings, without listmode, then return them with # escaped commas between them. l = [cls._shield_nvcc_list_arg(s, listmode=False) for s in l] - return '\,'.join(l) + return r'\,'.join(l) @classmethod def _to_host_flags(cls, flags: T.List[str], phase: _Phase = _Phase.COMPILER) -> T.List[str]: |