parameters: (self, attr)
return_statement: return attr() if callable(attr) else attr
docstring: gets property or calls method of related config object
          without rasing an exception if config is not set
docstring_summary: gets property or calls method of related config object
          without rasing an exception if config is not set
docstring_tokens: gets property or calls method of related config object without rasing an exception if config is not set
function: def _get_config_attr(self, attr):
          """
          gets property or calls method of related config object
          without rasing an exception if config is not set
          """
          if not self._has_config():
              return None
          attr = getattr(self.config, attr)
          return attr() if callable(attr) else attr
function_tokens: def _get_config_attr ( self , attr ) : if not self . _has_config ( ) : return None attr = getattr ( self . config , attr ) return attr ( ) if callable ( attr ) else attr