def IsBlockInNameSpace(nesting_state, is_forward_declaration):
 if is_forward_declaration:
  return ((len(nesting_state.stack) >= 1) and isinstance(nesting_state.stack[(-1)], _NamespaceInfo))
 return ((len(nesting_state.stack) > 1) and nesting_state.stack[(-1)].check_namespace_indentation and isinstance(nesting_state.stack[(-2)], _NamespaceInfo))

def IsBlockInNameSpace ( nesting_state , is_forward_declaration ) : if is_forward_declaration : return ( ( len ( nesting_state . stack ) >= 1 ) and isinstance ( nesting_state . stack [ ( - 1 ) ] , _NamespaceInfo ) ) return ( ( len ( nesting_state . stack ) > 1 ) and nesting_state . stack [ ( - 1 ) ] . check_namespace_indentation and isinstance ( nesting_state . stack [ ( - 2 ) ] , _NamespaceInfo ) )
checks that the new block is directly in a namespace .