Skip to content

SyntaxWarnings #42

@moritztim

Description

@moritztim

When I launch lldb I get the following warnings:

/home/foo/.lldb/utils/lldb_commands/ds.py:985: SyntaxWarning: invalid escape sequence '\$'
  search =  re.search('(?<=\$\().*(?=\))', command)
/home/foo/.lldb/utils/lldb_commands/jtool.py:148: SyntaxWarning: invalid escape sequence '\s'
  regex1 = '(?<![oO]ffset\s)(0[xX][A-Za-z0-9]+)'
/home/foo/.lldb/utils/lldb_commands/jtool.py:151: SyntaxWarning: invalid escape sequence '\s'
  regex2 = '(?<![oO]ffset\s)(0[xX][A-Za-z0-9]+)'
/home/foo/.lldb/utils/lldb_commands/tobjectivec.py:22: SyntaxWarning: invalid escape sequence '\-'
  command_args = shlex.split(command.replace('-', '\-'))
/home/foo/.lldb/utils/lldb_commands/tobjectivec.py:47: SyntaxWarning: invalid escape sequence '\$'
  copycommand = 'echo \"{} {}  {}\" | pbcopy'.format(source.replace('$', '\$'), cmd, stderr)
/home/foo/.lldb/utils/lldb_commands/disassemble.py:138: SyntaxWarning: invalid escape sequence '\<'
  match = re.search('(?<=\<\+)[0-9]+(?=\>)', inst.GetComment(target))
/home/foo/.lldb/utils/lldb_commands/ds.py:985: SyntaxWarning: invalid escape sequence '\$'
  search =  re.search('(?<=\$\().*(?=\))', command)
/home/foo/.lldb/utils/lldb_commands/lookup.py:36: SyntaxWarning: invalid escape sequence '\+'
  '''
/home/foo/.lldb/utils/lldb_commands/lookup.py:119: SyntaxWarning: invalid escape sequence '\g'
  output = re.sub('0x[a-fA-F0-9]+', '\x1b\x5b33m\g<0>\x1b\x5b39m', output)
/home/foo/.lldb/utils/lldb_commands/lookup.py:120: SyntaxWarning: invalid escape sequence '\-'
  output = re.sub('[\-|\+].*', '\033[36m\g<0>\033[0m', output)
/home/foo/.lldb/utils/lldb_commands/lookup.py:120: SyntaxWarning: invalid escape sequence '\g'
  output = re.sub('[\-|\+].*', '\033[36m\g<0>\033[0m', output)
/home/foo/.lldb/utils/lldb_commands/xref.py:57: SyntaxWarning: invalid escape sequence '\w'
  matches = re.findall(".*rip.*\n\w+", output)
/home/foo/.lldb/utils/lldb_commands/xref.py:58: SyntaxWarning: invalid escape sequence '\w'
  regex = re.compile('(?P<initial>\w+)?\t\w+\w.*[^\*](?P<offset>\-?0x\w+).*\n(?P<addr>\w+)')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions