Skip to content

Commit

Permalink
SANITIZE_COMPANY_NAME va en bormeparser.backends.options
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Oct 7, 2016
1 parent 3cc980e commit c60f709
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
3 changes: 0 additions & 3 deletions bormeparser/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
from bormeparser import SECCION, PROVINCIA


SANITIZE_COMPANY_NAME = False


class BormeAParserBackend(object):
def __init__(self, filename):

Expand Down
21 changes: 21 additions & 0 deletions bormeparser/backends/options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# bormeparser.backends.options.py -
# Copyright (C) 2016 Pablo Castellano <pablo@anche.no>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


SANITIZE_COMPANY_NAME = False
2 changes: 1 addition & 1 deletion bormeparser/backends/pypdf2/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
regex_bold_acto, REGEX_ARGCOLON, REGEX_NOARG, REGEX_PDF_TEXT, REGEX_BORME_NUM, REGEX_BORME_CVE,\
is_acto_bold_mix

from ..base import SANITIZE_COMPANY_NAME
from ..options import SANITIZE_COMPANY_NAME

logger = logging.getLogger(__name__)
logger.setLevel(logging.WARN)
Expand Down

0 comments on commit c60f709

Please sign in to comment.