From e7035b663fdf0792a5125e90736f99e903b2f0be Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 18 Jan 2013 19:13:15 -0500 Subject: [PATCH] feed: Remove the for loop variable `e` for a clean namespace Otherwise: >>> import rss2email.feed >>> print([x for x in dir(rss2email) if not x.startswith('_')]) ['Feed', 'e'] which might confuse people ;). Signed-off-by: W. Trevor King --- rss2email/feed.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rss2email/feed.py b/rss2email/feed.py index 73b182a..9a1c709 100644 --- a/rss2email/feed.py +++ b/rss2email/feed.py @@ -57,6 +57,7 @@ _SOCKET_ERRORS = [] for e in ['error', 'gaierror']: if hasattr(_socket, e): _SOCKET_ERRORS.append(getattr(_socket, e)) +del e # cleanup namespace _SOCKET_ERRORS = tuple(_SOCKET_ERRORS) -- 2.26.2