8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a7c7b commit d89385aCopy full SHA for d89385a
pymode/lint.py
@@ -84,11 +84,16 @@ def __sort(e):
84
env.debug("Find sorting: ", sort_rules)
85
errors = sorted(errors, key=__sort)
86
87
+ errors_list = []
88
for e in errors:
- e._info['bufnr'] = env.curbuf.number
89
- if e._info['col'] is None:
90
- e._info['col'] = 1
91
-
92
- env.run('g:PymodeLocList.current().extend', [e._info for e in errors])
+ if e.col is None:
+ e.col = 1
+ err_dict = e.to_dict()
+ err_dict['bufnr'] = env.curbuf.number
93
+ err_dict['type'] = e.etype
94
+ err_dict['text'] = e.message
95
+ errors_list.append(err_dict)
96
+
97
+ env.run('g:PymodeLocList.current().extend', errors_list)
98
99
# pylama:ignore=W0212,E1103
0 commit comments