equal
deleted
inserted
replaced
157 $ "$check_code" warning.py --warning --nolineno |
157 $ "$check_code" warning.py --warning --nolineno |
158 warning.py:0: |
158 warning.py:0: |
159 > except: |
159 > except: |
160 warning: naked except clause |
160 warning: naked except clause |
161 [1] |
161 [1] |
|
162 |
|
163 $ cat > raise-format.py <<EOF |
|
164 > raise SomeException, message |
|
165 > # this next line is okay |
|
166 > raise SomeException(arg1, arg2) |
|
167 > EOF |
|
168 $ "$check_code" raise-format.py |
|
169 raise-format.py:1: |
|
170 > raise SomeException, message |
|
171 don't use old-style two-argument raise, use Exception(message) |
|
172 [1] |