Skip to content

Commit f956408

Browse files
committed
Rename segments to raw_segments for clarity
1 parent 2b5a4f4 commit f956408

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydifact/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def convert_tokens_to_segments(
145145
:rtype list of Segment
146146
"""
147147

148-
segments: list[Elements] = []
148+
raw_segments: list[Elements] = []
149149
current_segment: Elements = []
150150
data_element: list[str] = []
151151
data_element_value: Element
@@ -178,7 +178,7 @@ def convert_tokens_to_segments(
178178
# an empty string to save into the segment then.
179179
else:
180180
current_segment = []
181-
segments.append(current_segment)
181+
raw_segments.append(current_segment)
182182
data_element = []
183183
empty_component_counter = 0
184184
in_segment = True
@@ -224,7 +224,7 @@ def convert_tokens_to_segments(
224224
empty_component_counter = 0
225225
continue
226226

227-
for segment in segments:
227+
for segment in raw_segments:
228228
name = segment.pop(0)
229229
if with_una and name == "UNA":
230230
# we found another UNA segment.

0 commit comments

Comments
 (0)