chore: remove unnecessary imports

This commit is contained in:
Saqib Ansari 2022-01-28 14:40:26 +05:30
parent 2c100a5313
commit a1f3dc4e9e
5 changed files with 2 additions and 12 deletions

View File

@ -2,8 +2,6 @@
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -2,8 +2,6 @@
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

View File

@ -2,8 +2,6 @@
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import base64
import io
import json
@ -14,7 +12,6 @@ import traceback
import frappe
import jwt
import six
from frappe import _, bold
from frappe.core.page.background_jobs.background_jobs import get_info
from frappe.integrations.utils import make_get_request, make_post_request
@ -39,7 +36,7 @@ from erpnext.regional.india.utils import get_gst_accounts, get_place_of_supply
@frappe.whitelist()
def validate_eligibility(doc):
if isinstance(doc, six.string_types):
if isinstance(doc, str):
doc = json.loads(doc)
invalid_doctype = doc.get('doctype') != 'Sales Invoice'
@ -507,7 +504,7 @@ def show_link_to_error_log(invoice, einvoice):
)
def log_error(data=None):
if isinstance(data, six.string_types):
if isinstance(data, str):
data = json.loads(data)
seperator = "--" * 50

View File

@ -1,8 +1,6 @@
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _