From 16f257356e359939aa242f4469ae03e8a7fa06f4 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 3 Feb 2020 18:36:47 +0100 Subject: [PATCH] Make end_pos public for syntax issues --- parso/normalizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/normalizer.py b/parso/normalizer.py index b076fe5..4e07c86 100644 --- a/parso/normalizer.py +++ b/parso/normalizer.py @@ -119,7 +119,6 @@ class NormalizerConfig(object): class Issue(object): def __init__(self, node, code, message): - self._node = node self.code = code """ An integer code that stands for the type of error. @@ -133,6 +132,7 @@ class Issue(object): The start position position of the error as a tuple (line, column). As always in |parso| the first line is 1 and the first column 0. """ + self.end_pos = node.end_pos def __eq__(self, other): return self.start_pos == other.start_pos and self.code == other.code