Remove support of Python2.5 and fix py3 warnings

This commit is contained in:
Cédric Krier committed 2011-07-12 00:17:31 +02:00
1 parent 073f57bac2
commit e285f941fe
2 files changed
+2 -2

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from decimal import Decimal
import operator
from trytond.model import ModelView, ModelSQL, fields
from trytond.pool import Pool
@@ -77,7 +78,7 @@ class InvoiceLine(ModelSQL, ModelView):
elif line.invoice.type == 'out_credit_note':
type_ = 'in_customer'
moves.sort(lambda x, y: cmp(x.effective_date, y.effective_date))
moves.sort(key=operator.attrgetter('effective_date'))
cost = move_obj.update_anglo_saxon_quantity_product_cost(
line.product, moves, line.quantity, line.unit, type_)
cost = currency_obj.round(line.invoice.currency, cost)
-1
View File
@@ -47,7 +47,6 @@ setup(name='trytond_account_stock_anglo_saxon',
'Natural Language :: French',
'Natural Language :: German',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Office/Business',