From 156868534f20129beffa76c0551ceecdb606b4c3 Mon Sep 17 00:00:00 2001 From: Pierre Camilleri Date: Wed, 20 May 2026 21:14:42 +0200 Subject: [PATCH 1/2] fix: comment --- frictionless/detector/detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frictionless/detector/detector.py b/frictionless/detector/detector.py index bfa38477a3..4f3ba3154c 100644 --- a/frictionless/detector/detector.py +++ b/frictionless/detector/detector.py @@ -216,7 +216,7 @@ def detect_encoding( encoding = detector.result["encoding"] or settings.DEFAULT_ENCODING confidence = detector.result["confidence"] or 0 if confidence < self.encoding_confidence: - # low confidence, so we try UTF8 + # low confidence, so we try default encoding # If decoding fails, we fallback to the detected encoding # despite the low-confidence detected = encoding From f9bd43d01102b8f987d8fe5d2df1c5a2c00b7a56 Mon Sep 17 00:00:00 2001 From: Pierre Camilleri Date: Wed, 20 May 2026 21:14:48 +0200 Subject: [PATCH 2/2] fix: no side effects for row.__str__ and row.__repr__ --- frictionless/table/row.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frictionless/table/row.py b/frictionless/table/row.py index b2947ba677..a31f42c6b9 100644 --- a/frictionless/table/row.py +++ b/frictionless/table/row.py @@ -52,12 +52,16 @@ def __eq__(self, other: object): return super().__eq__(other) def __str__(self): - self.__process() - return super().__str__() + s = "" + if not self.__processed: + s = "Unprocessed: " + return s + super().__str__() def __repr__(self): - self.__process() - return super().__repr__() + s = "" + if not self.__processed: + s = "Unprocessed: " + return s + super().__repr__() def __setitem__(self, key: str, value: Any): try: