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

@@ -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>

View File

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

View File

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

View File

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

View File

@@ -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:

View File

@@ -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],

View File

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

View File

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