Change a few remnant a.has_key(b) users to b in a.
authorChris Larson <clarson@kergoth.com>
Sat, 27 Mar 2004 14:39:57 +0000 (14:39 +0000)
committerChris Larson <clarson@kergoth.com>
Sat, 27 Mar 2004 14:39:57 +0000 (14:39 +0000)
bin/oeread

index 8a0a6ac..bc8f331 100644 (file)
@@ -23,8 +23,9 @@ if len(sys.argv) == 2:
                if k in cfg:
                        if cfg[k] == oefile[k]:
                                continue
-               print k,'=',oe.data.expand(oefile[k]['content'], oefile)
-else:  
+               if 'content' in oefile[k]:
+                       print k,'=',oe.data.expand(oefile[k]['content'], oefile)
+else:
        print "Variables in conf/oe.conf & friends:"
        for k in cfgkeys:
                print "%-30s %s" % (k, cfg[k])