escaping fix - description
This commit is contained in:
parent
2fad968a8d
commit
795eba9905
@ -39,7 +39,7 @@ except ImportError:
|
||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||
|
||||
__DESCRIPTION__ = """The Module {\\tt %s} is designed to fetch data from a keyboatd (e.g. RFID-Reader).
|
||||
For more Information read the sphinx documentation.""" % __name__.replace('_', '\_')
|
||||
For more Information read the sphinx documentation.""" % __name__.replace('_', '\\_')
|
||||
"""The Module Description"""
|
||||
__INTERPRETER__ = (2, 3)
|
||||
"""The Tested Interpreter-Versions"""
|
||||
@ -210,7 +210,8 @@ class keyboard(object):
|
||||
tm = time.time()
|
||||
while (num is not None and len(self.__rx_data__.get(device_name, [])) < num) or (num is None and len(self.__rx_data__.get(device_name, [])) < 1):
|
||||
if time.time() > tm + timeout:
|
||||
logger.warning('%s TIMEOUT (%ss): Not enough data in buffer. Requested %s and buffer size is %d.', self.LOG_PREFIX, repr(timeout), repr(num or 'all'), len(self.__receive_buffer__))
|
||||
logger.warning('%s TIMEOUT (%ss): Not enough data in buffer. Requested %s and buffer size is %d.',
|
||||
self.LOG_PREFIX, repr(timeout), repr(num or 'all'), len(self.__receive_buffer__))
|
||||
return None
|
||||
time.sleep(0.05)
|
||||
if num is None:
|
||||
|
29
_examples_/Makefile
Normal file
29
_examples_/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# pylibs examples Makefile: Version 1.0 (2025-08-15)
|
||||
|
||||
.ONESHELL:
|
||||
SHELL = /usr/bin/bash
|
||||
MAKEFLAGS += --no-print-directory
|
||||
.SILENT:
|
||||
|
||||
INTERPRETER = python3
|
||||
|
||||
.PHONY: all
|
||||
EXAMPLES := $(wildcard *.py)
|
||||
EXAMPLES := $(filter-out config.py, $(EXAMPLES))
|
||||
LOGFILES := ${EXAMPLES:.py=.log}
|
||||
LOGFILES_1st := ${EXAMPLES:.py=.log_1st}
|
||||
|
||||
all: $(LOGFILES)
|
||||
|
||||
-include __make.d__/*.mk
|
||||
|
||||
%.log: %.py
|
||||
$(MAKE) $@_1st 2> /dev/null
|
||||
echo -e "\e[1m * Running example $<\e[0m"
|
||||
$(INTERPRETER) $< > $@
|
||||
|
||||
localclean:
|
||||
clean: localclean
|
||||
echo -e "\e[1m * Example logs...\e[0m"
|
||||
rm -f $(LOGFILES)
|
||||
rm -f $(LOGFILES_1st)
|
Loading…
x
Reference in New Issue
Block a user