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

@@ -1,4 +1,3 @@
import sys
import frappe

View File

@@ -1,4 +1,3 @@
data = {
'Manufacturing': {
'company_name': 'Wind Power LLC'

View File

@@ -1,10 +1,8 @@
import json
import random
import frappe
from frappe.utils import add_days, nowdate
from six import iteritems
from erpnext.demo.domains import data
from erpnext.demo.setup.setup_data import import_json
@@ -130,7 +128,7 @@ def setup_item_price():
}
for price_list in ("standard_buying", "standard_selling"):
for item, rate in iteritems(locals().get(price_list)):
for item, rate in locals().get(price_list).items():
frappe.get_doc({
"doctype": "Item Price",
"price_list": price_list.replace("_", " ").title(),

View File

@@ -1,8 +1,6 @@
import json
import frappe
from six import iteritems
from erpnext.demo.domains import data
@@ -52,7 +50,7 @@ def setup_item_price():
}
for price_list in ("standard_buying", "standard_selling"):
for item, rate in iteritems(locals().get(price_list)):
for item, rate in locals().get(price_list).items():
frappe.get_doc({
"doctype": "Item Price",
"price_list": price_list.replace("_", " ").title(),

View File

@@ -1,4 +1,3 @@
import json
import random

View File

@@ -1,4 +1,3 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

View File

@@ -1,4 +1,3 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

View File

@@ -1,4 +1,3 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt

View File

@@ -1,4 +1,3 @@
import datetime
import random