mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-13 17:20:36 +00:00
chore: remove all six compat code
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<tbody>
|
||||
{% for ss_dict in ss_list %}
|
||||
<tr>
|
||||
{% for key, value in ss_dict.iteritems()|sort %}
|
||||
{% for key, value in ss_dict.items()|sort %}
|
||||
<td {% if key == "Total Pay"%} align = "right" {% endif %}> {{value}} </td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import json
|
||||
|
||||
import frappe
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
import frappe
|
||||
from six import iteritems
|
||||
|
||||
|
||||
def get_context(context):
|
||||
@@ -30,7 +28,7 @@ def get_context(context):
|
||||
|
||||
def update_gstin(context):
|
||||
dirty = False
|
||||
for key, value in iteritems(frappe.form_dict):
|
||||
for key, value in frappe.form_dict.items():
|
||||
if key != 'party':
|
||||
address_name = frappe.get_value('Address', key)
|
||||
if address_name:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
import requests
|
||||
from frappe import _
|
||||
@@ -6,7 +5,6 @@ from frappe.utils import sanitize_html
|
||||
from frappe.utils.global_search import search
|
||||
from html2text import html2text
|
||||
from jinja2 import utils
|
||||
from six import text_type
|
||||
|
||||
|
||||
def get_context(context):
|
||||
@@ -76,7 +74,7 @@ def prepare_api_results(api, topics_data):
|
||||
for topic in topics_data:
|
||||
route = api.base_url + '/' + (api.post_route + '/' if api.post_route else "")
|
||||
for key in api.post_route_key_list.split(','):
|
||||
route += text_type(topic[key])
|
||||
route += str(topic[key])
|
||||
|
||||
results.append(frappe._dict({
|
||||
'title': topic[api.post_title_key],
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user