chiark / gitweb /
peerdb/tripe-newpeers.in (MyConfigParser._get): Compress vertically.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 26 May 2018 11:14:41 +0000 (12:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 11:50:37 +0000 (12:50 +0100)
Just a cosmetic change.

peerdb/tripe-newpeers.in

index 09df7545f9c31de05dcbcb16ed7149af7fec1138..adc847f760e5c83e4bb23568a38e2d4fee998400 100644 (file)
@@ -235,21 +235,15 @@ class MyConfigParser (CP.RawConfigParser):
       ## If we've been this way before on another pass through then return
       ## the value we found then.  If we're still thinking about it then
       ## we've found a cycle.
-      try:
-        threadp, value = map[sec]
-      except KeyError:
-        pass
+      try: threadp, value = map[sec]
+      except KeyError: pass
       else:
-        if threadp:
-          raise InheritanceCycleError(key, path[:])
+        if threadp: raise InheritanceCycleError(key, path[:])
 
       ## See whether the answer is ready waiting for us.
-      try:
-        v = CP.RawConfigParser.get(me, sec, key)
-      except CP.NoOptionError:
-        pass
-      else:
-        return v, path[:]
+      try: v = CP.RawConfigParser.get(me, sec, key)
+      except CP.NoOptionError: pass
+      else: return v, path[:]
 
       ## No, apparently, not.  Find out our list of parents.
       try: