projects/aports·blob master · refs

14 lines · 708 B

1diff --color -rupN a/rfc_bibtex/rfc_bibtex.py b/rfc_bibtex/rfc_bibtex.py
2--- a/rfc_bibtex/rfc_bibtex.py 2019-03-16 11:41:21.000000000 +0100
3+++ b/rfc_bibtex/rfc_bibtex.py 2026-04-10 08:52:51.275743697 +0200
4@@ -75,7 +75,9 @@ class RFCBibtex(object):
5 @property
6 def bibtex_entries(self):
7 # remove Nones (errors returned by urllib), so that they're not printed
8- return filter(None.__ne__, [self.get_bibtex_from_id(id_name) for id_name in self._id_names])
9+ return (
10+ i for i in [self.get_bibtex_from_id(id_name) for id_name in self._id_names] if i is not None
11+ )
12
13 def _read_ids_from_plain_file(self, filename):
14 with open(filename, 'r') as f: