old_contents: #!/usr/bin/env python
  
  
  from redbot.message import headers
  from redbot.speak import Note, categories, levels
  from redbot.syntax import rfc7234
  
  class pragma(headers.HttpHeader):
      canonical_name = "Pragma"
      description = """\
  The `Pragma` header is used to include implementation-specific directives that might apply to any
  recipient along the request/response chain.
  
  This header is deprecated, in favour of `Cache-Control`."""
      reference = "%s#header.pragma" % rfc7234.SPEC_URL
      syntax = rfc7234.Pragma
      list_header = True
      deprecated = True
      valid_in_requests = False
      valid_in_responses = True
  
      def parse(self, field_value, add_note):
          return field_value.lower()
  
      def evaluate(self, add_note):
          if "no-cache" in self.value:
              add_note(PRAGMA_NO_CACHE)
          others = [True for v in self.value if v != "no-cache"]
          if others:
              add_note(PRAGMA_OTHER)
  
  
  class PRAGMA_NO_CACHE(Note):
      category = categories.CACHING
      level = levels.WARN
      summary = "Pragma: no-cache is a request directive, not a response \
    directive."
      text = """\
    `Pragma` is a very old request header that is sometimes used as a response header, even though this
    is not specified behaviour. `Cache-Control: no-cache` is more appropriate."""
  
  class PRAGMA_OTHER(Note):
      category = categories.GENERAL
      level = levels.WARN
      summary = """\
    The Pragma header is being used in an undefined way."""
      text = """\
    HTTP only defines `Pragma: no-cache`; other uses of this header are deprecated."""
  
  
  class PragmaTest(headers.HeaderTest):
      name = 'Pragma'
      inputs = ['no-cache']
      expected_out = ['no-cache']
      expected_err = [PRAGMA_NO_CACHE, headers.HEADER_DEPRECATED]
  
new_contents: #!/usr/bin/env python
  
  
  from redbot.message import headers
  from redbot.speak import Note, categories, levels
  from redbot.syntax import rfc7234
  
  class pragma(headers.HttpHeader):
      canonical_name = "Pragma"
      description = """\
  The `Pragma` header is used to include implementation-specific directives that might apply to any
  recipient along the request/response chain.
  
  This header is deprecated, in favour of `Cache-Control`."""
      reference = "%s#header.pragma" % rfc7234.SPEC_URL
      syntax = rfc7234.Pragma
      list_header = True
      deprecated = True
      valid_in_requests = False
      valid_in_responses = True
  
      def parse(self, field_value, add_note):
          return field_value.lower()
  
      def evaluate(self, add_note):
          if "no-cache" in self.value:
              add_note(PRAGMA_NO_CACHE)
          others = [True for v in self.value if v != "no-cache"]
          if others:
              add_note(PRAGMA_OTHER)
  
  
  class PRAGMA_NO_CACHE(Note):
      category = categories.CACHING
      level = levels.WARN
      summary = "Pragma: no-cache is a request directive, not a response directive."
      text = """\
  `Pragma` is a very old request header that is sometimes used as a response header, even though
  this is not specified behaviour. `Cache-Control: no-cache` is more appropriate."""
  
  class PRAGMA_OTHER(Note):
      category = categories.GENERAL
      level = levels.WARN
      summary = """The Pragma header is being used in an undefined way."""
      text = """HTTP only defines `Pragma: no-cache`; other uses of this header are deprecated."""
  
  
  class PragmaTest(headers.HeaderTest):
      name = 'Pragma'
      inputs = ['no-cache']
      expected_out = ['no-cache']
      expected_err = [PRAGMA_NO_CACHE, headers.HEADER_DEPRECATED]
  
subject: fix pragma_other note