def __call__(self, func):
    try:
      http_methods = getattr(func, "__http_methods__")
    except __HOLE__:
      http_methods = []
      setattr(func, "__http_methods__", http_methods)

    http_methods.append((self.method, self.path,))

    return func
dataset/ETHPy150Open google/grr/grr/gui/api_call_router.py/Http.__call__