From 8f0e0fc647a1b0f825e90fd9c3c86b0fa5c9210c Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Fri, 9 Feb 2018 11:03:22 +0530 Subject: [PATCH] Fixed Unicode to ASCII doc --- frappe/core/doctype/doctype/doctype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/doctype/doctype.py b/frappe/core/doctype/doctype/doctype.py index 5c1aa65ca4..5dc31376fc 100644 --- a/frappe/core/doctype/doctype/doctype.py +++ b/frappe/core/doctype/doctype/doctype.py @@ -381,7 +381,7 @@ class DocType(Document): # a DocType's name should not start with a number or underscore # and should only contain letters, numbers and underscore - is_a_valid_name = re.match("^(?![\W])[^\d_\s][\w -]+$", name, re.UNICODE) + is_a_valid_name = re.match("^(?![\W])[^\d_\s][\w -]+$", name, re.ASCII) if not is_a_valid_name: frappe.throw(_("DocType's name should start with a letter and it can only consist of letters, numbers, spaces and underscores"), frappe.NameError)