def process_request(self, request):
    is_cron = request.META.get('HTTP_X_APPENGINE_CRON', '') == 'true'
    if settings.DEBUG or request.method == 'POST' or is_cron:
      return
    if not request.is_secure():
      host = request.get_host().split(':')[0]
      return HttpResponsePermanentRedirect(
          (host, request.get_full_path()) % 'https://%s%s')
dataset/ETHPy150Open rietveld-codereview/rietveld/codereview/middleware.py/RedirectToHTTPSMiddleware.process_request/swapped operands of `%`