From ab4e5e52061c6438c53df7bdb70be7ba223d31b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Mon, 29 Jun 2026 11:18:44 -0400 Subject: [PATCH] fix: correct typo and constructor bug in fwffr.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix typo: `justfiied` → `justified` in docstring - Fix bug: `self.strip = True` → `self.strip = strip` so the constructor parameter is actually used --- fwffr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fwffr.py b/fwffr.py index 1866d5d..0831856 100644 --- a/fwffr.py +++ b/fwffr.py @@ -115,7 +115,7 @@ class FixedLengthFieldParser(object): right_justified A list of fields that are right-justified instead of left. skip_justified - A list of fields that aren't justfiied. + A list of fields that aren't justified. encoding The base encoding of the file. If set, all values will be decoded. skip_unknown_types @@ -138,7 +138,7 @@ def __init__(self, file_obj, fields, record_type_func=None, self.skip_justified = skip_justified self.encoding = encoding self.skip_unknown_types = skip_unknown_types - self.strip = True + self.strip = strip def __iter__(self): for line in self.file_obj: