equal
deleted
inserted
replaced
11 del(arg2) |
11 del(arg2) |
12 return ( 5+6, 9) |
12 return ( 5+6, 9) |
13 EOF |
13 EOF |
14 |
14 |
15 cat > quote.py <<EOF |
15 cat > quote.py <<EOF |
|
16 # let's use quote in comments |
16 (''' ( 4x5 ) |
17 (''' ( 4x5 ) |
17 but """\''' and finally''', |
18 but """\\''' and finally''', |
18 """let's fool checkpatch""", '1+2', |
19 """let's fool checkpatch""", '1+2', |
19 '"""', 42+1, """and |
20 '"""', 42+1, """and |
20 ( 4-1 ) """, "( 1+1 )\" and ") |
21 ( 4-1 ) """, "( 1+1 )\" and ") |
|
22 a, '\\\\\\\\', "\\\\\\" x-2", "c-1" |
21 EOF |
23 EOF |
22 |
24 |
23 check_code=`dirname $0`/../contrib/check-code.py |
25 check_code=`dirname $0`/../contrib/check-code.py |
24 ${check_code} ./wrong.py ./correct.py ./quote.py |
26 ${check_code} ./wrong.py ./correct.py ./quote.py |