Skip to content

Commit

Permalink
re.UNICODE (Python 2 compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Jun 28, 2015
1 parent 54af238 commit ee0f416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bormeparser/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

REGEX_EMPRESA = re.compile('^(\d+)\s+-\s+(.*)$')
REGEX_TEXT = re.compile('^\((.*)\)Tj$')
REGEX_BORME_NUM = re.compile('^Núm\. (\d+)')
REGEX_BORME_NUM = re.compile(u'^Núm\. (\d+)', re.UNICODE)
REGEX_BORME_FECHA = re.compile('^\w+ (\d+) de (\w+) de (\d+)')

MESES = {'enero': 1, 'febrero': 2, 'marzo': 3, 'abril': 4, 'mayo': 5, 'junio': 6, 'julio': 7,
Expand Down

0 comments on commit ee0f416

Please sign in to comment.