From bfc1d9cec47d610be7113f0e648bfe8d03e242e0 Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Thu, 12 Oct 2017 19:36:05 +0300 Subject: [PATCH] Updates from PyDev: Fixes issues with a single slash (Python 3.6 may now warn about them) --- python/helpers/pydev/build_tools/build_binaries_windows.py | 2 +- python/helpers/pydev/pydevd_file_utils.py | 2 +- python/helpers/pydev/setup.py | 2 +- python/helpers/pydev/tests_pydevd_python/performance_check.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/helpers/pydev/build_tools/build_binaries_windows.py b/python/helpers/pydev/build_tools/build_binaries_windows.py index 9424cc9934a5..644573255841 100644 --- a/python/helpers/pydev/build_tools/build_binaries_windows.py +++ b/python/helpers/pydev/build_tools/build_binaries_windows.py @@ -1,4 +1,4 @@ -''' +r''' Creating the needed environments for creating the pre-compiled distribution on Windods: 1. Download: diff --git a/python/helpers/pydev/pydevd_file_utils.py b/python/helpers/pydev/pydevd_file_utils.py index e8e259371f2e..07a2988969e9 100644 --- a/python/helpers/pydev/pydevd_file_utils.py +++ b/python/helpers/pydev/pydevd_file_utils.py @@ -1,4 +1,4 @@ -''' +r''' This module provides utilities to get the absolute filenames so that we can be sure that: - The case of a file will match the actual file in the filesystem (otherwise breakpoints won't be hit). - Providing means for the user to make path conversions when doing a remote debugging session in diff --git a/python/helpers/pydev/setup.py b/python/helpers/pydev/setup.py index 8ef92a2faba6..1058ed824197 100644 --- a/python/helpers/pydev/setup.py +++ b/python/helpers/pydev/setup.py @@ -1,4 +1,4 @@ -''' +r''' Full setup, used to distribute the debugger backend to PyPi. Note that this is mostly so that users can do: diff --git a/python/helpers/pydev/tests_pydevd_python/performance_check.py b/python/helpers/pydev/tests_pydevd_python/performance_check.py index 90598d622276..b53e962a9e18 100644 --- a/python/helpers/pydev/tests_pydevd_python/performance_check.py +++ b/python/helpers/pydev/tests_pydevd_python/performance_check.py @@ -114,7 +114,7 @@ class CheckDebuggerPerformance(debugger_unittest.DebuggerRunner): def _get_time_from_result(self, result): stdout = ''.join(result['stdout']) - match = re.search('TotalTime>>((\d|\.)+)<<', stdout) + match = re.search(r'TotalTime>>((\d|\.)+)<<', stdout) time_taken = match.group(1) return float(time_taken)