From 334db7488b100135a1d4e7bc9d4734c733f8efba Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 26 May 2018 12:14:41 +0100 Subject: [PATCH] peerdb/tripe-newpeers.in (MyConfigParser._get): Compress vertically. Just a cosmetic change. --- peerdb/tripe-newpeers.in | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/peerdb/tripe-newpeers.in b/peerdb/tripe-newpeers.in index 09df7545..adc847f7 100644 --- a/peerdb/tripe-newpeers.in +++ b/peerdb/tripe-newpeers.in @@ -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: -- 2.11.0