pymaster/util.py

2 lines
62 B
Python

def getAttrOrNone(obj, prop):
return getattr(obj, prop, None)