From 1955620c605f649fdaca79dd74626a6ccefce4f4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 10 Jan 2025 01:04:34 -0500 Subject: [PATCH] Fix subtly incorrect output --- lib/xenu_nntp/session.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/xenu_nntp/session.py b/lib/xenu_nntp/session.py index 5e794aa..c79bf6d 100644 --- a/lib/xenu_nntp/session.py +++ b/lib/xenu_nntp/session.py @@ -652,7 +652,7 @@ class Session(Connection): def _or(a, b): return a if a is not None else b - xref = message.headers.get('Xref') + xref = message.header('Xref') parts = [ str(message.id), @@ -663,11 +663,9 @@ class Session(Connection): _or(message.reference_ids, ''), str(int_bytes), str(int_lines), + 'Xref: %s' % (xref,) if xref is not None else '' ] - if xref is not None: - parts.append('Xref: %s' % xref) - return map(f, parts) def _cmd_over(self, identifier: Optional[str]=None):