From b6ece5d65f895a2d9ab4b1a5130594de3d80d95f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 14 Dec 2012 13:43:10 +0100 Subject: [PATCH] [REM] trailing semicolons bzr revid: xmo@openerp.com-20121214124310-wfdkhmcwxnyqu30m --- openerp/osv/orm.py | 2 +- openerp/report/printscreen/ps_list.py | 4 ++-- openerp/report/render/rml2txt/rml2txt.py | 3 ++- openerp/sql_db.py | 4 ++-- openerp/tools/graph.py | 2 +- openerp/tools/translate.py | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index ab9b4873f18..ab9d8df85a6 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -2411,7 +2411,7 @@ class BaseModel(object): :rtype: tuple :return: the :meth:`~.name_get` pair value for the newly-created record. """ - rec_id = self.create(cr, uid, {self._rec_name: name}, context); + rec_id = self.create(cr, uid, {self._rec_name: name}, context) return self.name_get(cr, uid, [rec_id], context)[0] # private implementation of name_search, allows passing a dedicated user for the name_get part to diff --git a/openerp/report/printscreen/ps_list.py b/openerp/report/printscreen/ps_list.py index 021994a732a..51882b6c81a 100644 --- a/openerp/report/printscreen/ps_list.py +++ b/openerp/report/printscreen/ps_list.py @@ -147,7 +147,7 @@ class report_printscreen_list(report_int): for i in range(0, len(fields_order)): temp.append(0) tsum.append(0) - ince = -1; + ince = -1 for f in fields_order: s = 0 ince += 1 @@ -237,7 +237,7 @@ class report_printscreen_list(report_int): if line.get('__no_leaf') and temp[count] == 1 and f != 'id' and not line['__context']['group_by']: tsum[count] = float(tsum[count]) + float(line[f]) if not line.get('__group') and f != 'id' and temp[count] == 1: - tsum[count] = float(tsum[count]) + float(line[f]); + tsum[count] = float(tsum[count]) + float(line[f]) else: col.text = '/' diff --git a/openerp/report/render/rml2txt/rml2txt.py b/openerp/report/render/rml2txt/rml2txt.py index b0de2069c6e..f86fee00713 100755 --- a/openerp/report/render/rml2txt/rml2txt.py +++ b/openerp/report/render/rml2txt/rml2txt.py @@ -29,7 +29,8 @@ import utils Font_size= 10.0 def verbose(text): - sys.stderr.write(text+"\n"); + sys.stderr.write(text+"\n") + class textbox(object): """A box containing plain text. diff --git a/openerp/sql_db.py b/openerp/sql_db.py index 31f45f879da..337964f3368 100644 --- a/openerp/sql_db.py +++ b/openerp/sql_db.py @@ -74,8 +74,8 @@ import threading from inspect import currentframe import re -re_from = re.compile('.* from "?([a-zA-Z_0-9]+)"? .*$'); -re_into = re.compile('.* into "?([a-zA-Z_0-9]+)"? .*$'); +re_from = re.compile('.* from "?([a-zA-Z_0-9]+)"? .*$') +re_into = re.compile('.* into "?([a-zA-Z_0-9]+)"? .*$') sql_counter = 0 diff --git a/openerp/tools/graph.py b/openerp/tools/graph.py index 4e336818638..d26355e177d 100755 --- a/openerp/tools/graph.py +++ b/openerp/tools/graph.py @@ -117,7 +117,7 @@ class graph(object): """ self.cut_edges = {} self.head_nodes = [] - i=0; + i=0 for edge in self.tree_edges: self.head_nodes = [] diff --git a/openerp/tools/translate.py b/openerp/tools/translate.py index 35f54a5151e..405566e37e7 100644 --- a/openerp/tools/translate.py +++ b/openerp/tools/translate.py @@ -272,7 +272,7 @@ class TinyPoFile(object): def __iter__(self): self.buffer.seek(0) self.lines = self._get_lines() - self.lines_count = len(self.lines); + self.lines_count = len(self.lines) self.first = True self.extra_lines= []