diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index 373ff56135ec45d9fe578c159c39b9c5f2857911..c964f12a77e07b9330de183d0d1f092801c225ae 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -38,8 +38,8 @@ class PRChecker(object): self.github = Github(os.getenv('GITHUB_API_TOKEN'), timeout=60) self.repo = self.github.get_repo('PaddlePaddle/Paddle') self.py_prog_oneline = re.compile('\d+\|\s*#.*') - self.py_prog_multiline_a = re.compile('\d+\|\s*r?""".*?"""', re.DOTALL) - self.py_prog_multiline_b = re.compile("\d+\|\s*r?'''.*?'''", re.DOTALL) + self.py_prog_multiline_a = re.compile('"""(.*?)"""', re.DOTALL) + self.py_prog_multiline_b = re.compile("'''(.*?)'''", re.DOTALL) self.cc_prog_online = re.compile('\d+\|\s*//.*') self.cc_prog_multiline = re.compile('\d+\|\s*/\*.*?\*/', re.DOTALL) self.lineno_prog = re.compile('@@ \-\d+,\d+ \+(\d+),(\d+) @@')