# HG changeset patch # User Jeff Hammel # Date 1505678325 25200 # Node ID 1259f9d7996160dce0e1f330e76fa877a92c5eeb # Parent 70ae14b6be511df893eb33972e752354cd8eb438 [BBB] we still in 2017 need py26 sometimes diff -r 70ae14b6be51 -r 1259f9d79961 python/install_config.py --- a/python/install_config.py Thu Aug 17 09:48:49 2017 -0700 +++ b/python/install_config.py Sun Sep 17 12:58:45 2017 -0700 @@ -30,8 +30,14 @@ ### standalone functions def class_mapping(_type): - """returns a dict of (name, class) for objects in the current globals() of _type""" - return {name:cls for name, cls in globals().items() if cls.issubclass(_type)} + """ + returns a dict of (name, class) for objects + in the current globals() of _type + """ + + return dict([(name,cls) + for name, cls in globals().items() if + cls.issubclass(_type)]) def execute(*commands, **kwargs):