mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 06:08:25 +00:00
chore: remove all six compat code
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import sys
|
||||
|
||||
import frappe
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
data = {
|
||||
'Manufacturing': {
|
||||
'company_name': 'Wind Power LLC'
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import json
|
||||
import random
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import datetime
|
||||
import random
|
||||
|
||||
|
||||
Reference in New Issue
Block a user