Skip to content

Commit de375d9

Browse files
committed
whitespace
1 parent 742c240 commit de375d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/unit/forklift/test_legacy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ class TestListField:
298298
([" foo"], ["foo"]),
299299
(["f oo "], ["f oo"]),
300300
('', []),
301+
(' ', []),
301302
],
302303
)
303304
def test_processes_form_data(self, data, expected):

warehouse/forklift/legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def _construct_dependencies(form, types):
264264
class ListField(wtforms.Field):
265265

266266
def process_formdata(self, valuelist):
267-
self.data = [v.strip() for v in valuelist if v]
267+
self.data = [v.strip() for v in valuelist if v.strip()]
268268

269269

270270
# TODO: Eventually this whole validation thing should move to the packaging

0 commit comments

Comments
 (0)