Skip to content

Commit 03a1e0b

Browse files
committed
remove bad-whitespace pylint directive
1 parent ea3a939 commit 03a1e0b

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

adafruit_thermal_printer/thermal_printer.py

-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"
5858

5959

60-
# pylint: disable=bad-whitespace
6160
# Internally used constants.
6261
_UPDOWN_MASK = const(1 << 2)
6362
_BOLD_MASK = const(1 << 3)
@@ -74,7 +73,6 @@
7473
SIZE_LARGE = const(2)
7574
UNDERLINE_THIN = const(0)
7675
UNDERLINE_THICK = const(1)
77-
# pylint: enable=bad-whitespace
7876

7977

8078
# Disable too many instance members warning. This is not something pylint can
@@ -106,7 +104,6 @@
106104
class ThermalPrinter:
107105
"""Thermal printer for printers with firmware version 2.68 or higher."""
108106

109-
# pylint: disable=bad-whitespace
110107
# Barcode types. These vary based on the firmware version so are made
111108
# as class-level variables that users can reference (i.e.
112109
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
@@ -120,7 +117,6 @@ class ThermalPrinter:
120117
CODABAR = 71
121118
CODE93 = 72
122119
CODE128 = 73
123-
# pylint: enable=bad-whitespace
124120

125121
class _PrintModeBit:
126122
# Internal descriptor class to simplify printer mode change properties.

adafruit_thermal_printer/thermal_printer_264.py

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"
4444

4545

46-
# pylint: disable=bad-whitespace
4746
# Internally used constants.
4847
_INVERSE_MASK = const(1 << 1) # Not in 2.6.8 firmware
49-
# pylint: enable=bad-whitespace
5048

5149

5250
# Legacy behavior class for printers with firmware 2.64 up to 2.68.
@@ -57,7 +55,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
5755
NOT including) 2.68.
5856
"""
5957

60-
# pylint: disable=bad-whitespace
6158
# Barcode types. These vary based on the firmware version so are made
6259
# as class-level variables that users can reference (i.e.
6360
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
@@ -71,7 +68,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
7168
CODABAR = 71
7269
CODE93 = 72
7370
CODE128 = 73
74-
# pylint: enable=bad-whitespace
7571

7672
def __init__(
7773
self, uart, byte_delay_s=0.00057346, dot_feed_s=0.0021, dot_print_s=0.03

adafruit_thermal_printer/thermal_printer_legacy.py

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"
4444

4545

46-
# pylint: disable=bad-whitespace
4746
# Internally used constants.
4847
_INVERSE_MASK = const(1 << 1) # Not in 2.6.8 firmware
49-
# pylint: enable=bad-whitespace
5048

5149

5250
# Legacy behavior class for printers with firmware before 2.64.
@@ -55,7 +53,6 @@
5553
class ThermalPrinter(thermal_printer.ThermalPrinter):
5654
"""Thermal printer for printers with firmware version before 2.64."""
5755

58-
# pylint: disable=bad-whitespace
5956
# Barcode types. These vary based on the firmware version so are made
6057
# as class-level variables that users can reference (i.e.
6158
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
@@ -71,7 +68,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
7168
CODE128 = 8
7269
CODE11 = 9
7370
MSI = 10
74-
# pylint: enable=bad-whitespace
7571

7672
def __init__(
7773
self, uart, byte_delay_s=0.00057346, dot_feed_s=0.0021, dot_print_s=0.03

0 commit comments

Comments
 (0)