diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 79f38ed..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10"] - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install Flask ifcfg icmplib flask-qrcode gunicorn - pip install pylint - - name: Analysing the code with pylint - run: | - pylint $(find src -name "*.py" | xargs) --disable=line-too-long diff --git a/src/dashboard.py b/src/dashboard.py index 8c5861d..5fdcd20 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -66,9 +66,9 @@ def get_dashboard_conf(): Get dashboard configuration @return: configparser.ConfigParser """ - config = configparser.ConfigParser(strict=False) - config.read(DASHBOARD_CONF) - return config + r_config = configparser.ConfigParser(strict=False) + r_config.read(DASHBOARD_CONF) + return r_config def set_dashboard_conf(config): @@ -190,7 +190,7 @@ def read_conf_file(config_name): conf_peer_data["Peers"].append({}) elif peer > -1: if len(i) > 0: - tmp = re.split('\s*=\s*', i, 1) + tmp = re.split(r'\s*=\s*', i, 1) if len(tmp) == 2: conf_peer_data["Peers"][peer][tmp[0]] = tmp[1]