def EncodeAppIdNamespace(app_id, namespace):
 if (not namespace):
  return app_id
 else:
  return ((app_id + _NAMESPACE_SEPARATOR) + namespace)

def EncodeAppIdNamespace ( app_id , namespace ) : if ( not namespace ) : return app_id else : return ( ( app_id + _NAMESPACE_SEPARATOR ) + namespace )
concatenates app id and namespace into a single string .