[PATCH 06 of 11 logilab-common] [fix] bad variable name

Laurent Peuch cortex at worlddomination.be
Wed Apr 1 16:20:07 CEST 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1584559460 -3600
#      Wed Mar 18 20:24:20 2020 +0100
# Node ID aab7e86cddf34680976fb734d6aa3749ee5d3767
# Parent  f74cdc28838c8c5a16ba785ecf8ef3ee11723aad
# Available At https://hg.logilab.org/users/lpeuch/logilab-common
#              hg pull https://hg.logilab.org/users/lpeuch/logilab-common -r aab7e86cddf3
# EXP-Topic types-annotations-and-cleaning
[fix] bad variable name

diff --git a/logilab/common/fileutils.py b/logilab/common/fileutils.py
--- a/logilab/common/fileutils.py
+++ b/logilab/common/fileutils.py
@@ -405,7 +405,7 @@ def remove_dead_links(directory, verbose
       flag indicating whether information about deleted links should be
       printed to stderr, default to False
     """
-    for dirpath, dirname, filenames in walk(directory):
+    for dirpath, dirnames, filenames in walk(directory):
         for filename in dirnames + filenames:
             src = join(dirpath, filename)
             if islink(src) and not exists(src):




More information about the cubicweb-devel mailing list