
from circuits import Event

class WebEvent(Event):

    channels = ("web",)


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """

    success = True
    failure = True


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """

    success = True
    failure = True


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """

    success = True
    failure = True


from circuits import Event


class WebEvent(Event):

    channels = ("web",)

    success = True
    failure = True


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """

Move success/failure properties into WebEvent base class.
Move success/failure properties into WebEvent base class.

  
  from circuits import Event
+ 
  
  class WebEvent(Event):
  
      channels = ("web",)
+ 
+     success = True
+     failure = True
  
  
  class Request(WebEvent):
      """Request(WebEvent) -> Request WebEvent
  
      args: request, response
      """
  
-     success = True
-     failure = True
- 
  
  class Response(WebEvent):
      """Response(WebEvent) -> Response WebEvent
  
      args: request, response
      """
- 
-     success = True
-     failure = True
  
  
  class Stream(WebEvent):
      """Stream(WebEvent) -> Stream WebEvent
  
      args: request, response
      """
  
-     success = True
-     failure = True
- 
Move success/failure properties into WebEvent base class.
## Code Before:

from circuits import Event

class WebEvent(Event):

    channels = ("web",)


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """

    success = True
    failure = True


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """

    success = True
    failure = True


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """

    success = True
    failure = True

## Instruction:
Move success/failure properties into WebEvent base class.
## Code After:

from circuits import Event


class WebEvent(Event):

    channels = ("web",)

    success = True
    failure = True


class Request(WebEvent):
    """Request(WebEvent) -> Request WebEvent

    args: request, response
    """


class Response(WebEvent):
    """Response(WebEvent) -> Response WebEvent

    args: request, response
    """


class Stream(WebEvent):
    """Stream(WebEvent) -> Stream WebEvent

    args: request, response
    """
