chore: remove all six compat code

This commit is contained in:
Ankush Menat
2021-11-04 19:48:32 +05:30
parent 56a25a0c4f
commit 8fe5feb6a4
420 changed files with 179 additions and 678 deletions

View File

@@ -5,7 +5,6 @@
import json
import frappe
import six
from frappe import _
from frappe.email import sendmail_to_system_managers
from frappe.model.document import Document
@@ -83,7 +82,7 @@ def capture_razorpay_donations(*args, **kwargs):
notify_failure(log)
return { 'status': 'Failed', 'reason': e }
if isinstance(data, six.string_types):
if isinstance(data, str):
data = json.loads(data)
data = frappe._dict(data)

View File

@@ -1,4 +1,3 @@
from frappe import _

View File

@@ -1,4 +1,3 @@
from frappe import _

View File

@@ -6,7 +6,6 @@ import json
from datetime import datetime
import frappe
import six
from frappe import _
from frappe.email import sendmail_to_system_managers
from frappe.model.document import Document
@@ -343,7 +342,7 @@ def process_request_data(data):
notify_failure(log)
return {"status": "Failed", "reason": e}
if isinstance(data, six.string_types):
if isinstance(data, str):
data = json.loads(data)
data = frappe._dict(data)

View File

@@ -1,5 +1,3 @@
def get_context(context):
# do your magic here
pass

View File

@@ -1,5 +1,3 @@
def get_context(context):
# do your magic here
pass

View File

@@ -1,5 +1,3 @@
def get_context(context):
context.no_cache = True
context.parents = [dict(label='View All ',