Download:
child 49:82badf3033e4
parent 47:5633f9a8dc95
48:9b37d0f08f1c
Anton Shestakov <av6@dwimlabs.net>, Sun, 19 Jun 2016 22:04:57 +0800
incoming: save filename and line number for linter output in Check.lines

1 файлов изменено, 2 вставок(+), 0 удалений(-) [+]
incoming.py file | annotate | diff | comparison | revisions
--- a/incoming.py Sun Jun 19 22:03:36 2016 +0800
+++ b/incoming.py Sun Jun 19 22:04:57 2016 +0800
@@ -104,6 +104,8 @@
elif state == 'checks':
m = re.match(r'^(.+):(\d+):\d+: ', line)
if m is not None:
+ item['filename'] = m.group(1)
+ item['fileline'] = m.group(2)
rest = line[m.end():]
# pep8-specific E9xx