Skip to content

Commit

Permalink
Merge pull request #120 from xenserver-next/private/bernhardk/CP-4130…
Browse files Browse the repository at this point in the history
…2-fix-CI

xcp/bootloader.py: Fix CP-41302 for pre-commit and github CI
  • Loading branch information
bernhardkaindl authored Sep 21, 2023
2 parents 2fc064f + 4f12164 commit f703ff7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ inputs = ["xcp", "tests", "./*.py"]
keepgoing = true
platform = "linux"
python_version = "3.10"
pythonpath = ".:stubs"
disable = ["ignored-type-comment"]
overriding_parameter_count_checks = true
use_enum_overlay = true
14 changes: 9 additions & 5 deletions xcp/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,23 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from __future__ import print_function
from __future__ import division
from __future__ import division, print_function

import copy
import os
import os.path
import re
import tempfile
import copy
from typing import cast

import xcp.branding as branding # pytype: disable=import-error

import xcp.cmd

# pyre-ignore-all-errors[21]
try: # xenserver-release.rpm puts a branding.py into our xcp installation directory:
from xcp import branding # type:ignore[attr-defined] # pytype: disable=import-error
except ImportError: # For CI, use stubs/branding.py (./stubs is added to pythonpath)
import branding

from .compat import open_textfile

COUNTER = 0
Expand Down

0 comments on commit f703ff7

Please sign in to comment.