Test-suite: Unify string quoting in the Python sources
This commit is contained in:
parent
c4ad3480bd
commit
fa5f519bf9
23 changed files with 146 additions and 146 deletions
|
|
@ -1,10 +1,10 @@
|
|||
def check(got, expected, expected_builtin=None):
|
||||
if got is None: # Absence of comment is equivalent to empty comment.
|
||||
got = ''
|
||||
got = ""
|
||||
|
||||
if got != expected:
|
||||
import re
|
||||
p = re.compile(r'^[+-]([^+-].*\S)?(\s+)$', re.M)
|
||||
p = re.compile(r"^[+-]([^+-].*\S)?(\s+)$", re.M)
|
||||
|
||||
def make_trailing_spaces_visible(str):
|
||||
def replace_trailing_spaces(match):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue