""" Class to encapsulate a message """

import logging

class Message:
    """ A message object """

    def __init__(self, text, user, room, connector):
        """ Create object with minimum properties """
        self.text = text
        self.user = user
        self.room = room
        self.connector = connector

    def respond(self, text):
        """ Respond to this message using the connector it was created by """
        self.text = text
        self.connector.respond(self)

""" Class to encapsulate a message """

import logging

class Message:
    """ A message object """

    def __init__(self, text, user, room, connector):
        """ Create object with minimum properties """
        self.text = text
        self.user = user
        self.room = room
        self.connector = connector
        self.regex = None

    def respond(self, text):
        """ Respond to this message using the connector it was created by """
        self.text = text
        self.connector.respond(self)

Make regex a None property
Make regex a None property

  """ Class to encapsulate a message """
  
  import logging
  
  class Message:
      """ A message object """
  
      def __init__(self, text, user, room, connector):
          """ Create object with minimum properties """
          self.text = text
          self.user = user
          self.room = room
          self.connector = connector
+         self.regex = None
  
      def respond(self, text):
          """ Respond to this message using the connector it was created by """
          self.text = text
          self.connector.respond(self)
  
Make regex a None property
## Code Before:
""" Class to encapsulate a message """

import logging

class Message:
    """ A message object """

    def __init__(self, text, user, room, connector):
        """ Create object with minimum properties """
        self.text = text
        self.user = user
        self.room = room
        self.connector = connector

    def respond(self, text):
        """ Respond to this message using the connector it was created by """
        self.text = text
        self.connector.respond(self)

## Instruction:
Make regex a None property
## Code After:
""" Class to encapsulate a message """

import logging

class Message:
    """ A message object """

    def __init__(self, text, user, room, connector):
        """ Create object with minimum properties """
        self.text = text
        self.user = user
        self.room = room
        self.connector = connector
        self.regex = None

    def respond(self, text):
        """ Respond to this message using the connector it was created by """
        self.text = text
        self.connector.respond(self)
