chore: remove all six compat code

This commit is contained in:
Ankush Menat
2021-11-04 19:48:32 +05:30
parent 56a25a0c4f
commit 8fe5feb6a4
420 changed files with 179 additions and 678 deletions

View File

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

View File

@@ -1,5 +1,3 @@
def get_data():
return {
'fieldname': 'project_template',

View File

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

View File

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

View File

@@ -1,4 +1,3 @@
import unittest
import frappe

View File

@@ -5,7 +5,6 @@
import frappe
from frappe import _
from frappe.utils import flt, getdate
from six import iteritems
def execute(filters=None):
@@ -110,7 +109,7 @@ class EmployeeHoursReport:
self.data = []
for emp, data in iteritems(self.stats_by_employee):
for emp, data in self.stats_by_employee.items():
row = frappe._dict()
row['employee'] = emp
row.update(data)
@@ -180,7 +179,7 @@ class EmployeeHoursReport:
def calculate_utilizations(self):
TOTAL_HOURS = flt(self.standard_working_hours * self.day_span, 2)
for emp, data in iteritems(self.stats_by_employee):
for emp, data in self.stats_by_employee.items():
data['total_hours'] = TOTAL_HOURS
data['untracked_hours'] = flt(TOTAL_HOURS - data['billed_hours'] - data['non_billed_hours'], 2)

View File

@@ -1,4 +1,3 @@
import unittest
import frappe

View File

@@ -1,4 +1,3 @@
import unittest
import frappe

View File

@@ -1,4 +1,3 @@
import frappe