[Bug 2138422] [NEW] Improve docstrings in UpdateManager/Core/utils.py (wrap, twrap, lsmod)

Arnab Patra 2138422 at bugs.launchpad.net
Thu Jan 15 07:17:47 UTC 2026


Public bug reported:

Hi,

Improved docstrings in UpdateManager/Core/utils.py for better clarity:

- wrap(): Explained why custom wrapper is needed (textwrap breaks package names on '-')
- twrap(): Clarified multi-paragraph handling and use cases
- lsmod(): Documented intentional return of [] on failure

Pure documentation changes — no code changes, no behavior changes, safe
for all users.

Attached: arnab-doc-patch.diff

Thanks!
Arnab Patra

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

** Patch added: "utils (Copy).py"
   https://bugs.launchpad.net/bugs/2138422/+attachment/5939227/+files/utils%20%28Copy%29.py

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2138422

Title:
  Improve docstrings in UpdateManager/Core/utils.py (wrap, twrap, lsmod)

Status in update-manager package in Ubuntu:
  New

Bug description:
  Hi,

  Improved docstrings in UpdateManager/Core/utils.py for better clarity:

  - wrap(): Explained why custom wrapper is needed (textwrap breaks package names on '-')
  - twrap(): Clarified multi-paragraph handling and use cases
  - lsmod(): Documented intentional return of [] on failure

  Pure documentation changes — no code changes, no behavior changes,
  safe for all users.

  Attached: arnab-doc-patch.diff

  Thanks!
  Arnab Patra

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2138422/+subscriptions




More information about the foundations-bugs mailing list