Error de sintaxys en l10n_ES_aeat_mod347

Bug #564340 reported by mikel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Spanish Localization Project
Invalid
Undecided
Unassigned

Bug Description

Trabajando en CentOS con python 2.4 al instalar el nuevo módulo l10n_ES_pyme_account en una instalación limpia.

  File "/home/openerp/addons/l10n_ES_aeat_mod347/wizard/__init__.py", line 30, in ?
    import wizard_calculate
  File "/home/openerp/addons/l10n_ES_aeat_mod347/wizard/wizard_calculate.py", line 273
    finally:
          ^
SyntaxError: invalid syntax

El código es el de la revisión 144 de openerp-spain 5.0

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Acabo de hacer una revisión del módulo usando un verificador de código (pylint) y, aunque si detectó algún gazapo (que acabo de corregir en la revisión 145), no ha detectado ningún problema de sintaxis como el que estás teniendo.

¿Será que el error sólo se produce en python 2.4?

Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

Yo tampoco observo ningún problema de sintaxis en ese archivo en concreto. Probado en python 2.5 y python 2.6.
Igual tienes python 2.4 y buscando he leído que las clausulas try-except-finally no están del todo bien implementadas en python 2.4.

Revision history for this message
mikel (mikel-martin) wrote :

Casi seguro que es un fallo en Python 2.4.

La versión "oficial" de python para la que se desarrolla openERP es la 2.5 ¿no?

Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

Ahora 2.6 con compatibilidad con la 2.5

Changed in openerp-spain:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.