[FIX] unnecessary backslashes
authorXavier Morel <xmo@openerp.com>
Fri, 14 Dec 2012 13:21:13 +0000 (14:21 +0100)
committerXavier Morel <xmo@openerp.com>
Fri, 14 Dec 2012 13:21:13 +0000 (14:21 +0100)
bzr revid: xmo@openerp.com-20121214132113-1ofmm5x0ua3l2q5d

openerp/addons/base/ir/ir_model.py
openerp/addons/base/ir/ir_translation.py

index e015860..4b56ae0 100644 (file)
@@ -272,7 +272,7 @@ class ir_model_fields(osv.osv):
         except Exception:
             _logger.warning('Invalid selection list definition for fields.selection', exc_info=True)
             raise except_orm(_('Error'),
-                    _("The Selection Options expression is not a valid Pythonic expression." \
+                    _("The Selection Options expression is not a valid Pythonic expression."
                       "Please provide an expression in the [('key','Label'), ...] format."))
 
         check = True
index f9983b5..a971275 100644 (file)
@@ -217,11 +217,11 @@ class ir_translation(osv.osv):
     def _get_ids(self, cr, uid, name, tt, lang, ids):
         translations = dict.fromkeys(ids, False)
         if ids:
-            cr.execute('select res_id,value ' \
-                    'from ir_translation ' \
-                    'where lang=%s ' \
-                        'and type=%s ' \
-                        'and name=%s ' \
+            cr.execute('select res_id,value '
+                    'from ir_translation '
+                    'where lang=%s '
+                        'and type=%s '
+                        'and name=%s '
                         'and res_id IN %s',
                     (lang,tt,name,tuple(ids)))
             for res_id, value in cr.fetchall():
@@ -237,10 +237,10 @@ class ir_translation(osv.osv):
             self._get_ids.clear_cache(self, uid, name, tt, lang, res_id)
         self._get_source.clear_cache(self, uid, name, tt, lang)
 
-        cr.execute('delete from ir_translation ' \
-                'where lang=%s ' \
-                    'and type=%s ' \
-                    'and name=%s ' \
+        cr.execute('delete from ir_translation '
+                'where lang=%s '
+                    'and type=%s '
+                    'and name=%s '
                     'and res_id IN %s',
                 (lang,tt,name,tuple(ids),))
         for id in ids: