old_contents: import logging
  from subprocess import Popen, PIPE
  
  from django.conf import settings
  
  logger = logging.getLogger('saleor')
  
  
  class CheckHTML(object):
      def process_response(self, _request, response):
          if (
              settings.DEBUG
              and settings.WARN_ABOUT_INVALID_HTML5_OUTPUT
              and 200 <= response.status.code < 300
          ):
              proc = Popen(["tidy"], stdout=PIPE, stderr=PIPE, stdin=PIPE)
              _out, err = proc.communicate(response.content)
              for l in err.split('\n\n')[0].split('\n')[:-2]:
                  logger.warning(l)
          return response
  
new_contents: import logging
  from subprocess import Popen, PIPE
  
  from django.conf import settings
  
  logger = logging.getLogger('saleor')
  
  
  class CheckHTML(object):
      def process_response(self, _request, response):
          if (
              settings.DEBUG
              and settings.WARN_ABOUT_INVALID_HTML5_OUTPUT
              and 200 <= response.status_code < 300
          ):
              proc = Popen(["tidy"], stdout=PIPE, stderr=PIPE, stdin=PIPE)
              _out, err = proc.communicate(response.content)
              for l in err.split('\n\n')[0].split('\n')[:-2]:
                  logger.warning(l)
          return response
  
subject: Fix a typo