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