nvda
ca41d22e - Fixed some escape sequence in strings. (#13340)

Commit
4 years ago
Fixed some escape sequence in strings. (#13340) Summary of the issue: NVDA code base has some erroneous strings containing backslash: Running NVDA from source, you can get the following warning: DEBUGWARNING - Python warning (23:25:35.885) - MainThread (9764): C:\Users\CB232690\Documents\DevP\GIT\nvda\source\api.py:460: DeprecationWarning: invalid escape sequence \| some functions have docstring containing a backslash where it should be two of them (or a raw string) Testing strategy: For W605 error: copy / paste the modified string before and after in the console and checked their equality, e.g.: >>> a = u'^((?P<sheet>(\'[^\']+\'|[^!]+))!)?' >>> b = r"^((?P<sheet>('[^']+'|[^!]+))!)?" >>> a == b Checked manually the modified docstrings in the console: >>> import addonHandler >>> help(addonHandler.Addon.getDocFilePath) >>> help(addonHandler._ge
Author
Parents
Loading