Replace wrapLines() with Python's textwrap.wrap() #1699
Labels
GOOD FIRST ISSUE
Used by 24pullrequests.com to suggest issues
HELP-WANTED
Used by 24pullrequests.com to suggest issues
Logging & diagnostics
Milestone
Introduction
Welcome to the project, if you pick up this Issue because of the "GOOD FIRST USE" label. You will be mentored through the process if you want. First the Issue is explained. At the end you will find some guidance for first contributors. Please do not hesitate to ask questions. Your solution don't need to be perfect.
Problem
BIT has it's own function
logger.py::wrapLines()
but Python offer the same functionality withtextwrap.wrap()
.Solution
Replace that function with
textwrap.wrap()
. Check viagit grep
where it is used in the code. It is not much. Easy to replace.Argument
new_line_indicator
is used inlogger.py::_do_syslog()
. Usetextwrap.wrap(..., subsequent_indent='CONTINUE: ')
instead.Your next steps
Related code
backintime/common/logger.py
Lines 149 to 184 in 5aa0746
The text was updated successfully, but these errors were encountered: