Make sure strings don’t contain unescaped backslashes.
This commit is contained in:
parent
4bc6f19f19
commit
03446bb74f
|
@ -459,7 +459,7 @@ def get_output_of_command(command):
|
|||
return output
|
||||
|
||||
def get_windows_reg_env(varname, default=''):
|
||||
"""
|
||||
r"""
|
||||
Ask for paths commonly used but not exposed as ENVs in english Windows 2003
|
||||
those are:
|
||||
'AppData' = %USERPROFILE%\Application Data (also an ENV)
|
||||
|
|
|
@ -1943,9 +1943,9 @@ class Interface:
|
|||
# We match from our list of emoticons, but they must either have
|
||||
# whitespace, or another emoticon next to it to match successfully
|
||||
# [\w.] alphanumeric and dot (for not matching 8) in (2.8))
|
||||
emoticons_pattern = '|' + '(?:(?<![\w.]' + \
|
||||
emoticons_pattern = '|' + r'(?:(?<![\w.]' + \
|
||||
emoticons_pattern_prematch[:-1] + '))' + '(?:' + \
|
||||
emoticons_pattern[:-1] + ')' + '(?:(?![\w]' + \
|
||||
emoticons_pattern[:-1] + ')' + r'(?:(?![\w]' + \
|
||||
emoticons_pattern_postmatch[:-1] + '))'
|
||||
|
||||
# because emoticons match later (in the string) they need to be after
|
||||
|
|
|
@ -404,7 +404,7 @@ class PluginManager(metaclass=Singleton):
|
|||
@staticmethod
|
||||
@log_calls('PluginManager')
|
||||
def scan_dir_for_plugins(path, scan_dirs=True):
|
||||
'''
|
||||
r'''
|
||||
Scans given directory for plugin classes.
|
||||
|
||||
:param path: directory to scan for plugins
|
||||
|
|
Loading…
Reference in New Issue