Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyCommandsDoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _heading(self, m):
self._headings.append(m)
self._kcLastHeadingLevel = min(self._kcLastHeadingLevel, level - 1)

RE_SETTING_SINGLE_KEY = re.compile(ur"^[^|]+?[::]\s*(.+?)\s*$")
RE_SETTING_SINGLE_KEY = re.compile(r"^[^|]+?[::]\s*(.+?)\s*$")
def _handleSetting(self):
if not self._settingsHeaderRow:
raise KeyCommandsError("%d, setting command cannot be used before settingsSection command" % self._lineNum)
Expand Down
2 changes: 1 addition & 1 deletion source/characterProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def __init__(self, locale):
# Simple symbols.
# These are all handled in one named group.
# Because the symbols are just text, we know which symbol matched just by looking at the matched text.
patterns.append(ur"(?P<simple>{multiChars}|{singleChars})".format(
patterns.append(r"(?P<simple>{multiChars}|{singleChars})".format(
multiChars="|".join(re.escape(identifier) for identifier in multiChars),
singleChars=characters
))
Expand Down
4 changes: 2 additions & 2 deletions source/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def initConfigPath(configPath=None):
if not os.path.isdir(subdir):
os.makedirs(subdir)

RUN_REGKEY = ur"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
RUN_REGKEY = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"

def getStartAfterLogon():
if (easeOfAccess.isSupported and easeOfAccess.canConfigTerminateOnDesktopSwitch
Expand Down Expand Up @@ -237,7 +237,7 @@ def execElevated(path, params=None, wait=False,handleAlreadyElevated=False):

#: The name of the registry key stored under HKEY_LOCAL_MACHINE where system wide NVDA settings are stored.
#: Note that NVDA is a 32-bit application, so on X64 systems, this will evaluate to "SOFTWARE\WOW6432Node\nvda"
NVDA_REGKEY = ur"SOFTWARE\NVDA"
NVDA_REGKEY = r"SOFTWARE\NVDA"

def getStartOnLogonScreen():
if easeOfAccess.isSupported and easeOfAccess.willAutoStart(winreg.HKEY_LOCAL_MACHINE):
Expand Down
4 changes: 2 additions & 2 deletions source/mathPres/mathPlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# Break.
r"<break time='(?P<break>\d+)ms'/> ?"
# Pronunciation of characters.
ur"|<say-as interpret-as='characters'>(?P<char>[^<])</say-as> ?"
r"|<say-as interpret-as='characters'>(?P<char>[^<])</say-as> ?"
# Specific pronunciation.
ur"|<phoneme alphabet='ipa' ph='(?P<ipa>[^']+)'> (?P<phonemeText>[^ <]+)</phoneme> ?"
r"|<phoneme alphabet='ipa' ph='(?P<ipa>[^']+)'> (?P<phonemeText>[^ <]+)</phoneme> ?"
# Prosody.
r"|<prosody(?: pitch='(?P<pitch>\d+)%')?(?: volume='(?P<volume>\d+)%')?(?: rate='(?P<rate>\d+)%')?> ?"
r"|(?P<prosodyReset></prosody>) ?"
Expand Down
4 changes: 2 additions & 2 deletions source/virtualBuffers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class VBufStorage_findMatch_word(unicode):

FINDBYATTRIBS_ESCAPE_TABLE = {
# Symbols that are escaped in the attributes string.
ord(u":"): ur"\\:",
ord(u";"): ur"\\;",
ord(u":"): r"\\:",
ord(u";"): r"\\;",
ord(u"\\"): u"\\\\\\\\",
}
# Symbols that must be escaped for a regular expression.
Expand Down