parameters: (text)
return_statement: return re.sub(
          r'^\s*#\s*if(?:def)?.*?[\r\n]{1,2}(.*?(?=#\s*(?:else|elif|endif))).*?#\s*endif',
          r'\1', text, flags=re.S | re.M
      )
docstring: Removes 'else' branches of #if[def] statement.
docstring_summary: Removes 'else' branches of #if[def] statement.
docstring_tokens: Removes else branches of #if [ def ] statement .
function: def filter_conditional_preprocessor_statements(text):
      """Removes 'else' branches of #if[def] statement."""
      return re.sub(
          r'^\s*#\s*if(?:def)?.*?[\r\n]{1,2}(.*?(?=#\s*(?:else|elif|endif))).*?#\s*endif',
          r'\1', text, flags=re.S | re.M
      )
function_tokens: def filter_conditional_preprocessor_statements ( text ) : return re . sub ( r'^\s*#\s*if(?:def)?.*?[\r\n]{1,2}(.*?(?=#\s*(?:else|elif|endif))).*?#\s*endif' , r'\1' , text , flags = re . S | re . M )