fd and fh are fine: we often use these for "file descriptor" or "file handle" accordingly. It is rarely the case that you need to enforce a more semantically meaningful name beyond "This is the file we are using right now."
While we're here: add comments for all of the non-standard pylint names. (And the underscore.) Signed-off-by: John Snow <js...@redhat.com> --- python/setup.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/setup.cfg b/python/setup.cfg index c8b7215996e9..c963d05527aa 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -68,9 +68,10 @@ good-names=i, k, ex, Run, - _, - fd, - c, + _, # By convention: Unused variable + fh, # fh = open(...) + fd, # fd = os.open(...) + c, # for c in string: ... [pylint.similarities] # Ignore imports when computing similarities. -- 2.26.2