From 7698bf735196ca1f5b6e9c2b752489c81c502d89 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Sat, 25 Nov 2023 09:35:14 +0100 Subject: [PATCH] Final QA (#474) --- python-double-underscore/csv_data.py | 3 +-- python-double-underscore/point.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python-double-underscore/csv_data.py b/python-double-underscore/csv_data.py index e018c5692c..f7f27fdc27 100644 --- a/python-double-underscore/csv_data.py +++ b/python-double-underscore/csv_data.py @@ -15,5 +15,4 @@ def read_tsv(self): def _read(self, delimiter): with open(self.file_path, mode="r") as file: - data = [row for row in csv.reader(file, delimiter=delimiter)] - return data + return [row for row in csv.reader(file, delimiter=delimiter)] diff --git a/python-double-underscore/point.py b/python-double-underscore/point.py index c9fb0261eb..81ae9f1789 100644 --- a/python-double-underscore/point.py +++ b/python-double-underscore/point.py @@ -1,7 +1,7 @@ class Point: def __init__(self, x, y): - self._x = x - self._y = y + self.x = x + self.y = y @property def x(self):