chiark / gitweb /
peerdb/tripe-newpeers.in (ConfigSection.items): Rename `d' to `seen'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 27 May 2018 11:57:53 +0000 (12:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 11:50:38 +0000 (12:50 +0100)
We haven't tried to store useful values in this dictionary for a long
time.  Give it a more useful name.

See?  I do think about this.

peerdb/tripe-newpeers.in

index 4b9fe1f892048ea2a182ceffa8e2400428e4ece5..e7f5d518f3372cedf4c6b129f703e824a9fda7aa 100644 (file)
@@ -310,7 +310,7 @@ class ConfigSection (object):
     """
 
     ## Initialize for a depth-first walk of the inheritance graph.
-    d = {}
+    seen = {}
     visited = {}
     stack = [me]
 
@@ -323,10 +323,10 @@ class ConfigSection (object):
       stack += sec._parents()
 
       for key in sec._itemmap.iterkeys():
-        if key != '@inherit': d[key] = None
+        if key != '@inherit': seen[key] = None
 
     ## And we're done.
-    return d.iterkeys()
+    return seen.iterkeys()
 
 class MyConfigParser (object):
   """