Skip to content

Commit

Permalink
unicode (python 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Oct 7, 2016
1 parent 44312ae commit 9e165ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bormeparser/acto.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ACTO:

# Palabra clave
_ending_keywords = {
'Datos registrales': DATOS_REGISTRALES
u'Datos registrales': DATOS_REGISTRALES
}

ARG_KEYWORDS = list(six.viewkeys(_arg_keywords))
Expand Down
2 changes: 1 addition & 1 deletion bormeparser/borme.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class BormeAnuncio(object):
"""

def __init__(self, id, empresa, actos, registro=None, datos_registrales=None):
logger.debug("new BormeAnuncio({}) {} ({})".format(id, empresa, registro))
logger.debug(u"new BormeAnuncio({}) {} ({})".format(id, empresa, registro))
self.id = id
self.empresa = empresa
self.registro = registro
Expand Down
6 changes: 3 additions & 3 deletions bormeparser/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ def is_acto_cargo_entrante(data):

if not is_acto_cargo(data):
raise ValueError('No es un acto con cargos: %s' % data)
return data in ['Reelecciones', 'Nombramientos']
return data in [u'Reelecciones', u'Nombramientos']


def is_acto_cargo(data):
""" Comprueba si es un acto que tiene como parámetro una lista de cargos """
actos = ['Revocaciones', 'Reelecciones', 'Cancelaciones de oficio de nombramientos', 'Nombramientos',
'Ceses/Dimisiones', u'Emisión de obligaciones', u'Modificación de poderes']
actos = [u'Revocaciones', u'Reelecciones', u'Cancelaciones de oficio de nombramientos', u'Nombramientos',
u'Ceses/Dimisiones', u'Emisión de obligaciones', u'Modificación de poderes']
return data in actos


Expand Down

0 comments on commit 9e165ea

Please sign in to comment.