mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 08:32:24 +00:00
chore: remove all six compat code
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
from frappe import _
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
from frappe import _
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = True
|
||||
context.parents = [dict(label='View All ',
|
||||
|
||||
Reference in New Issue
Block a user