[REM] trailing semicolons

bzr revid: xmo@openerp.com-20121214124310-wfdkhmcwxnyqu30m
This commit is contained in:
Xavier Morel 2012-12-14 13:43:10 +01:00
parent 90a687ab7a
commit b6ece5d65f
6 changed files with 9 additions and 8 deletions

View File

@ -2411,7 +2411,7 @@ class BaseModel(object):
:rtype: tuple :rtype: tuple
:return: the :meth:`~.name_get` pair value for the newly-created record. :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] 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 # private implementation of name_search, allows passing a dedicated user for the name_get part to

View File

@ -147,7 +147,7 @@ class report_printscreen_list(report_int):
for i in range(0, len(fields_order)): for i in range(0, len(fields_order)):
temp.append(0) temp.append(0)
tsum.append(0) tsum.append(0)
ince = -1; ince = -1
for f in fields_order: for f in fields_order:
s = 0 s = 0
ince += 1 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']: 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]) tsum[count] = float(tsum[count]) + float(line[f])
if not line.get('__group') and f != 'id' and temp[count] == 1: 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: else:
col.text = '/' col.text = '/'

View File

@ -29,7 +29,8 @@ import utils
Font_size= 10.0 Font_size= 10.0
def verbose(text): def verbose(text):
sys.stderr.write(text+"\n"); sys.stderr.write(text+"\n")
class textbox(object): class textbox(object):
"""A box containing plain text. """A box containing plain text.

View File

@ -74,8 +74,8 @@ import threading
from inspect import currentframe from inspect import currentframe
import re import re
re_from = re.compile('.* from "?([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]+)"? .*$'); re_into = re.compile('.* into "?([a-zA-Z_0-9]+)"? .*$')
sql_counter = 0 sql_counter = 0

View File

@ -117,7 +117,7 @@ class graph(object):
""" """
self.cut_edges = {} self.cut_edges = {}
self.head_nodes = [] self.head_nodes = []
i=0; i=0
for edge in self.tree_edges: for edge in self.tree_edges:
self.head_nodes = [] self.head_nodes = []

View File

@ -272,7 +272,7 @@ class TinyPoFile(object):
def __iter__(self): def __iter__(self):
self.buffer.seek(0) self.buffer.seek(0)
self.lines = self._get_lines() self.lines = self._get_lines()
self.lines_count = len(self.lines); self.lines_count = len(self.lines)
self.first = True self.first = True
self.extra_lines= [] self.extra_lines= []