Merge pull request #16456 from adityahase/unicode

fix(unicode): Import unicode_literals in every file
This commit is contained in:
Nabin Hait 2019-01-29 11:13:30 +05:30 committed by GitHub
commit 0bfd990ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
273 changed files with 316 additions and 30 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe import frappe
from frappe import _ from frappe import _
from erpnext.setup.setup_wizard.operations.install_fixtures import add_sale_stages 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 import frappe
from frappe import _ from frappe import _

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import frappe import frappe
# this patch should have been included with this PR https://github.com/frappe/erpnext/pull/14302 # this patch should have been included with this PR https://github.com/frappe/erpnext/pull/14302

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