fix(unicode): Import unicode_literals in every file

This commit is contained in:
Aditya Hase 2019-01-22 18:22:20 +05:30
parent 815c575a0b
commit f3c22f342c
274 changed files with 316 additions and 29 deletions

View File

@ -1,5 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, os, json

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import unittest
import frappe

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
DEFAULT_MAPPERS = [
{
'doctype': 'Cash Flow Mapper',

View File

@ -1,6 +1,7 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,5 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, erpnext

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,7 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import json

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
import frappe.defaults
import unittest

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from erpnext import get_company_currency, get_default_company
from erpnext.setup.utils import get_exchange_rate

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import unittest
from erpnext.accounts.party import get_party_shipping_address
from frappe.test_runner import make_test_objects

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'asset_name',

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,5 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, json
from frappe.utils.make_random import get_random
@ -162,7 +163,7 @@ def make_assessment_groups():
def get_json_path(doctype):
return frappe.get_app_path('erpnext', 'demo', 'data', frappe.scrub(doctype) + '.json')
def weighted_choice(weights):
totals = []
running_total = 0

View File

@ -1,5 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, json
from frappe.utils.make_random import get_random

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Agriculture Task',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Item',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Student',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Patient',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Restaurant',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Item',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Non Profit',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'POS',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
data = {
'desktop_icons': [
'Project',

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def pre_process(issue):

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def pre_process(milestone):
return {
'title': milestone.title,

View File

@ -4,6 +4,7 @@
# Basic interface to Amazon MWS
# Based on http://code.google.com/p/amazon-mws-python
# Extended to include finances object
from __future__ import unicode_literals
import urllib
import hashlib

View File

@ -6,6 +6,7 @@ Borrowed from https://github.com/timotheus/ebaysdk-python
@author: pierre
"""
from __future__ import unicode_literals
import xml.etree.ElementTree as ET
import re

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cstr, cint, get_request_session

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
import base64, hashlib, hmac

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'attendance_request',

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'transactions': [

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'holiday_list',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'leave_block_list',

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'leave_policy',

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
def get_data():
return {
'fieldname': 'leave_type',

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
data = {

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,5 +1,6 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from frappe import _
def get_data():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.model.utils.rename_field import rename_field

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.model.utils.rename_field import rename_field

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import rebuild_tree

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from erpnext.stock.utils import get_bin

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.model.rename_doc import get_fetch_fields

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import os
import frappe

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe, os
from frappe import _

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -1,6 +1,7 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from erpnext.setup.setup_wizard.operations.install_fixtures import add_sale_stages

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from erpnext.setup.install import create_default_success_action

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils.nestedset import rebuild_tree

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from erpnext.regional.india.setup import make_custom_fields

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
def execute():

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from erpnext.regional.india.setup import make_custom_fields

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import rebuild_tree

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
from erpnext.domains.healthcare import data

View File

@ -1,6 +1,8 @@
# Copyright (c) 2018, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
# imports - module imports
import frappe

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe
from frappe.model.utils.rename_field import rename_field

Some files were not shown because too many files have changed in this diff Show More