From 01cc1db2a59a781c1ceb389a3d9a7f454967472c Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Fri, 26 Oct 2018 15:56:48 +0200 Subject: [PATCH] Removed warnings (invalid escape sequence for docstring & cython issue) --- boundaries/createindexlist.py | 2 +- cpu/msvc_detection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boundaries/createindexlist.py b/boundaries/createindexlist.py index 4eecddc47..49863c815 100644 --- a/boundaries/createindexlist.py +++ b/boundaries/createindexlist.py @@ -5,7 +5,7 @@ import warnings try: import pyximport - pyximport.install() + pyximport.install(language_level=3) from pystencils.boundaries.createindexlistcython import create_boundary_index_list_2d, create_boundary_index_list_3d cython_funcs_available = True diff --git a/cpu/msvc_detection.py b/cpu/msvc_detection.py index 7c45d484f..be0fb9189 100644 --- a/cpu/msvc_detection.py +++ b/cpu/msvc_detection.py @@ -35,7 +35,7 @@ def get_environment(version_specifier, arch='x64'): def find_latest_msvc_version_using_environment_variables(): import re # noinspection SpellCheckingInspection - regex = re.compile('VS(\d\d)\dCOMNTOOLS') + regex = re.compile(r'VS(\d\d)\dCOMNTOOLS') versions = [] for key, value in os.environ.items(): match = regex.match(key) -- GitLab