Browse Source

Replaced HTMLParser imports with six.moves.html_parser (#3812)

version-14
Aditya Hase 8 years ago
committed by Rushabh Mehta
parent
commit
928ebb66a6
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      frappe/email/queue.py
  2. +1
    -1
      frappe/utils/data.py
  3. +1
    -1
      frappe/utils/global_search.py

+ 1
- 1
frappe/email/queue.py View File

@@ -4,7 +4,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from six.moves import range from six.moves import range
import frappe import frappe
import HTMLParser
from six.moves import html_parser as HTMLParser
import smtplib, quopri, json import smtplib, quopri, json
from frappe import msgprint, throw, _ from frappe import msgprint, throw, _
from frappe.email.smtp import SMTPServer, get_outgoing_email_account from frappe.email.smtp import SMTPServer, get_outgoing_email_account


+ 1
- 1
frappe/utils/data.py View File

@@ -11,7 +11,7 @@ import babel.dates
from babel.core import UnknownLocaleError from babel.core import UnknownLocaleError
from dateutil import parser from dateutil import parser
from num2words import num2words from num2words import num2words
import HTMLParser
from six.moves import html_parser as HTMLParser
from html2text import html2text from html2text import html2text
from six import iteritems from six import iteritems




+ 1
- 1
frappe/utils/global_search.py View File

@@ -235,7 +235,7 @@ def update_global_search(doc):
def get_formatted_value(value, field): def get_formatted_value(value, field):
'''Prepare field from raw data''' '''Prepare field from raw data'''


from HTMLParser import HTMLParser
from six.moves.html_parser import HTMLParser


if(getattr(field, 'fieldtype', None) in ["Text", "Text Editor"]): if(getattr(field, 'fieldtype', None) in ["Text", "Text Editor"]):
h = HTMLParser() h = HTMLParser()


Loading…
Cancel
Save