[all-commits] [llvm/llvm-project] 7bf3cb: [lldb] Fix issue with re.Pattern availability

Dave Lee via All-commits all-commits at lists.llvm.org
Mon Nov 7 19:34:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bf3cb3ee871b6707b7f5114a7fde61485df450e
      https://github.com/llvm/llvm-project/commit/7bf3cb3ee871b6707b7f5114a7fde61485df450e
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/decorators.py
    M lldb/packages/Python/lldbsuite/test/lldbtest.py

  Log Message:
  -----------
  [lldb] Fix issue with re.Pattern availability

`re.Pattern` is introduced in Python 3.7. To support Python 3.6, fallback to typechecking against `SRE_Pattern`.

Differential Revision: https://reviews.llvm.org/D137582




More information about the All-commits mailing list