diff --git a/vim-plugins-profile.py b/vim-plugins-profile.py index 67e5e47..79ac3d0 100755 --- a/vim-plugins-profile.py +++ b/vim-plugins-profile.py @@ -102,7 +102,7 @@ def __guess_plugin_dir(self, log_txt): # Get common plugin dir if any vim_subdirs = "autoload|ftdetect|plugin|syntax" - matches = re.findall("^\d+.\d+\s+\d+.\d+\s+\d+.\d+: " + matches = re.findall(r"^\d+.\d+\s+\d+.\d+\s+\d+.\d+: " "sourcing (.+?)/(?:[^/]+/)(?:%s)/[^/]+" % vim_subdirs, log_txt, re.MULTILINE) for plugin_dir in matches: @@ -129,7 +129,7 @@ def __load_times(self, check_system=False): # Try to guess the folder based on the logs themselves try: plugin_dir = self.__guess_plugin_dir(log_txt) - matches = re.findall("^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): " + matches = re.findall(r"^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): " "sourcing %s/([^/]+)/" % plugin_dir, log_txt, re.MULTILINE) for res in matches: @@ -148,7 +148,7 @@ def __load_times(self, check_system=False): if check_system: for d in self.system_dirs: - matches = re.findall("^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): " + matches = re.findall(r"^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): " "sourcing %s/.+/([^/]+.vim)\n" % d, log_txt, re.MULTILINE) for res in matches: