snapcraft uses % to format strings
Metadata
Current evaluation
Replaced legacy % string formatting with str.format in ubuntu-core/snapcraft PR #72 after tracking moved to GitHub issue #34.
Resolution: closed resolved
Reason: The maintainer explicitly recorded the problem as fixed by ubuntu-core/snapcraft PR #72.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Instead, it should use the .format method.
From https://docs.python.org/2/library/stdtypes.html#str.format :
This method of string formatting is the new standard in Python 3, and should be preferred to the % formatting described in String Formatting Operations in new code.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Replaced legacy % string formatting with str.format in ubuntu-core/snapcraft PR #72 after tracking moved to GitHub issue #34. | |
| stealth/space-bunny-alpha | — | closed resolved | Launchpad bug to replace %-formatting with str.format. Tracked at moved to GitHub issue canonical/snapcraft#34 and fixed by merged PR canonical/snapcraft#72 (commit 3bafa0eeb, merge e1ffebc34), which converted seven files. | |
| stealth/space-bunny-alpha | — | closed resolved | Tracked on Launchpad (LP1477638), moved to GitHub issue #34 and closed: PR #72 (commit 3bafa0eeb, merge e1ffebc34) replaced %-formatting with str.format across seven files. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as abandoned without discussion or a linked fix; no resolving PR was recorded for replacing % formatting with .format(). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as abandoned. The suggestion to replace legacy % string formatting with .format() received no discussion or implementation. The project likely adopted Python 3 standards separately. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without changes due to age and lack of activity. The suggestion to migrate from percent-style formatting to .format() was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The recommendation to replace % formatting with .format() was not adopted and likely superseded by modern Python f-strings. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without comments or resolution. The suggestion to replace % string formatting with .format() was not implemented, indicating the issue was abandoned or superseded by Python 3 evolution. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#72
(confidence 100%)
The closing maintainer comment cites PR #72 as the fix.
-
Related To:
ubuntu-core/snapcraft#34
(confidence 100%)
Tracking was moved from Launchpad to GitHub issue #34.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #34 snapcraft uses % to format strings | snapcraft | closed | Closed as abandoned after inactivity; no linked PR or commit replaced legacy % string formatting with str.format(). | |
| #1476467 snapcraft is mixing the string literals, some with ' and some with " | snapcraft (launchpad) | closed | Style issue about mixed string quote styles was moved from Launchpad to GitHub ubuntu-core/snapcraft#25 and fixed by PR #65 (commit 21d9497), merged as 06c8a88, replacing double quotes with single quotes across the codebase. |