chore: remove py2 specific code from boilerplate

This commit is contained in:
Ankush Menat 2021-05-03 20:05:03 +05:30
parent 111d13f93b
commit a617348a79
No known key found for this signature in database
GPG key ID: 8EA82E09BBD13AAF
4 changed files with 5 additions and 17 deletions

View file

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (c) {year}, {app_publisher} and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
{base_class_import}

View file

@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (c) {year}, {app_publisher} and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest

View file

@ -1,7 +1,6 @@
# Copyright (c) 2013, {app_publisher} and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
def execute(filters=None):

View file

@ -1,4 +1,4 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, print_function
@ -126,16 +126,12 @@ recursive-include {app_name} *.svg
recursive-include {app_name} *.txt
recursive-exclude {app_name} *.pyc"""
init_template = """# -*- coding: utf-8 -*-
from __future__ import unicode_literals
init_template = """
__version__ = '0.0.1'
"""
hooks_template = """# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
hooks_template = """from . import __version__ as app_version
app_name = "{app_name}"
app_title = "{app_title}"
@ -321,9 +317,7 @@ user_data_fields = [
"""
desktop_template = """# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
desktop_template = """from frappe import _
def get_data():
return [
@ -337,8 +331,7 @@ def get_data():
]
"""
setup_template = """# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup_template = """from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\\n')