From 9943b82807090aa4f536ba5486e48e08b25235c7 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 1 Feb 2021 17:24:31 -0300 Subject: [PATCH] Removed KiCad 6 code from coverage. --- kibot/layer.py | 2 +- kibot/out_any_drill.py | 2 +- kibot/out_dxf.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kibot/layer.py b/kibot/layer.py index 4a58b0d8..4d9232ae 100644 --- a/kibot/layer.py +++ b/kibot/layer.py @@ -181,7 +181,7 @@ class Layer(Optionable): elif layer in Layer._pcb_layers: ext = [Layer.create_layer(layer)] # Give compatibility for the KiCad 5 default names (automagically renamed by KiCad 6) - elif GS.kicad_version_n >= KICAD_VERSION_5_99 and layer in Layer.KICAD6_RENAME: + elif GS.kicad_version_n >= KICAD_VERSION_5_99 and layer in Layer.KICAD6_RENAME: # pragma: no cover (Ki6) ext = [Layer.create_layer(Layer.KICAD6_RENAME[layer])] elif layer in Layer.DEFAULT_LAYER_NAMES: ext = [Layer.create_layer(layer)] diff --git a/kibot/out_any_drill.py b/kibot/out_any_drill.py index ce8f38c1..5d896e61 100644 --- a/kibot/out_any_drill.py +++ b/kibot/out_any_drill.py @@ -37,7 +37,7 @@ class DrillReport(Optionable): def get_aux_origin(board): - if GS.kicad_version_n >= KICAD_VERSION_5_99: + if GS.kicad_version_n >= KICAD_VERSION_5_99: # pragma: no cover (Ki6) settings = board.GetDesignSettings() return settings.m_AuxOrigin return board.GetAuxOrigin() diff --git a/kibot/out_dxf.py b/kibot/out_dxf.py index 3e46b1fa..321a3eda 100644 --- a/kibot/out_dxf.py +++ b/kibot/out_dxf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020 Salvador E. Tropea -# Copyright (c) 2020 Instituto Nacional de TecnologĂ­a Industrial +# Copyright (c) 2020-2021 Salvador E. Tropea +# Copyright (c) 2020-2021 Instituto Nacional de TecnologĂ­a Industrial # License: GPL-3.0 # Project: KiBot (formerly KiPlot) from pcbnew import PLOT_FORMAT_DXF, SKETCH, FILLED @@ -9,7 +9,7 @@ from .drill_marks import DrillMarks from .gs import GS from .misc import KICAD_VERSION_5_99 from .macros import macros, document, output_class # noqa: F401 -if GS.kicad_version_n >= KICAD_VERSION_5_99: +if GS.kicad_version_n >= KICAD_VERSION_5_99: # pragma: no cover (Ki6) from pcbnew import DXF_UNITS_MILLIMETERS, DXF_UNITS_INCHES else: DXF_UNITS_MILLIMETERS = 1