295 offset = exc.args[1] |
295 offset = exc.args[1] |
296 if len(offset) > 2: |
296 if len(offset) > 2: |
297 offset = offset[1:3] |
297 offset = offset[1:3] |
298 else: |
298 else: |
299 offset = (1, 0) |
299 offset = (1, 0) |
300 return ({ |
300 return ( |
301 "file": filename, |
301 { |
302 "line": offset[0], |
302 "file": filename, |
303 "offset": offset[1], |
303 "line": offset[0], |
304 "code": "E901", |
304 "offset": offset[1], |
305 "args": [exc_type.__name__, exc.args[0]], |
305 "code": "E901", |
306 }, { |
306 "args": [exc_type.__name__, exc.args[0]], |
307 "E901": 1, |
307 }, { |
308 }, |
308 "E901": 1, |
309 None) |
309 }, |
|
310 None |
|
311 ) |
310 |
312 |
311 |
313 |
312 def __checkCodeStyle(filename, source, args): |
314 def __checkCodeStyle(filename, source, args): |
313 """ |
315 """ |
314 Private module function to perform the code style check and/or fix |
316 Private module function to perform the code style check and/or fix |