chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0193243
)
peerdb/tripe-newpeers.in (MyConfigParser._get): Compress vertically.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 26 May 2018 11:14:41 +0000
(12:14 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 14 Jun 2018 11:50:37 +0000
(12:50 +0100)
Just a cosmetic change.
peerdb/tripe-newpeers.in
patch
|
blob
|
blame
|
history
diff --git
a/peerdb/tripe-newpeers.in
b/peerdb/tripe-newpeers.in
index 09df7545f9c31de05dcbcb16ed7149af7fec1138..adc847f760e5c83e4bb23568a38e2d4fee998400 100644
(file)
--- 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.
## 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:
else:
- if threadp:
- raise InheritanceCycleError(key, path[:])
+ if threadp: raise InheritanceCycleError(key, path[:])
## See whether the answer is ready waiting for us.
## 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:
## No, apparently, not. Find out our list of parents.
try: