testsAndMisc/python_pkg/brother_printer
Krzysztof kuhy Rudnicki ad3d70f197
Some checks are pending
Pre-commit checks / pre-commit (push) Waiting to run
Python tests / test (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Split brother_printer PJL wire transport out of usb_query
usb_query.py 267 -> 180. The non-blocking fd handling - _drain_buffer,
_write_with_deadline, _read_nonblocking, _wait_for_pjl_response and
pjl_query - moves to _pjl_io.py.

usb_query imports the three names test_usb_query.py patches back, which
is safe here only because all three still have real call sites in the
code that stayed; an import-only name would be stripped by ruff's F401
sweep and break the patch. os and time also stay: they are patched on
usb_query as well as on _pjl_io.

test_usb_query.py needs no edit. Pass count is 402 before and after.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-16 17:11:15 +02:00
..
tests Split brother_printer PJL wire transport out of usb_query 2026-08-16 17:11:15 +02:00
__init__.py feat: brother printer checker 2026-02-06 21:21:52 +01:00
__main__.py fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
_cups_fallback.py Split brother_printer CUPS fallback query out of cups_service 2026-08-16 17:02:42 +02:00
_page_count.py Split brother_printer dropped-page detection out of consumables 2026-08-16 17:07:21 +02:00
_page_delivery.py Split brother_printer dropped-page detection out of consumables 2026-08-16 17:07:21 +02:00
_pjl_io.py Split brother_printer PJL wire transport out of usb_query 2026-08-16 17:11:15 +02:00
_query.py feat: split oversized modules for 500-line limit, fix kasa coverage gap 2026-06-14 07:19:37 +02:00
_queue_fix.py Split brother_printer queue display and fix prompt out of cups_queue 2026-08-16 16:53:51 +02:00
_severity.py Reduce brother_printer/display.py and dedup the consumable bars 2026-08-16 16:39:02 +02:00
_supply.py Reduce brother_printer/display.py and dedup the consumable bars 2026-08-16 16:39:02 +02:00
check_brother_printer.py fix(brother-printer): split oversized files, fix order-dependent entry test 2026-07-17 15:06:25 +02:00
constants.py fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
consumables.py Split brother_printer dropped-page detection out of consumables 2026-08-16 17:07:21 +02:00
cups_queue.py Split brother_printer CUPS fallback query out of cups_service 2026-08-16 17:02:42 +02:00
cups_service.py Split brother_printer CUPS fallback query out of cups_service 2026-08-16 17:02:42 +02:00
data_classes.py fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
display.py Split brother_printer queue display and fix prompt out of cups_queue 2026-08-16 16:53:51 +02:00
network_query.py feat: split oversized modules for 500-line limit, fix kasa coverage gap 2026-06-14 07:19:37 +02:00
run.sh fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
usb_query.py Split brother_printer PJL wire transport out of usb_query 2026-08-16 17:11:15 +02:00