Projet

Général

Profil

0001-trivial-replace-deprecated-cgi.escape-call-41573.patch

Frédéric Péters, 09 avril 2020 18:51

Télécharger (951 octets)

Voir les différences:

Subject: [PATCH] trivial: replace deprecated cgi.escape call (#41573)

 wcs/qommon/ezt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcs/qommon/ezt.py
224 224
#
225 225

  
226 226
import datetime
227
import html
227 228
import re
228 229
import os
229
import cgi
230 230
from django.utils import six
231 231
from django.utils.six import StringIO as cStringIO
232 232

  
......
475 475
    _write_value(valref, fp, ctx)
476 476

  
477 477
  def _cmd_print_html(self, valref, fp, ctx):
478
    _write_value(valref, fp, ctx, cgi.escape)
478
    _write_value(valref, fp, ctx, html.escape)
479 479

  
480 480
  def _cmd_print_rtf(self, valref, fp, ctx):
481 481
    def char2rtf(c):
482
-