← Back to issue list

snapcraft uses % to format strings

View original Github issue

Metadata

Project
snapcraft
Number
#34
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Closed as abandoned after inactivity; no linked PR or commit replaced legacy % string formatting with str.format().

Resolution: closed stale

Reason: Launchpad bug LP1477638 was closed as abandoned, with no linked implementation or resolving commit. The sole maintainer comment only linked a pastebin snapshot of the current trunk.

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. Launchpad Details: [#LP1477638](https://bugs.launchpad.net/bugs/1477638) Leo Arias - 2015-07-23 11:53:49 -0300

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as abandoned after inactivity; no linked PR or commit replaced legacy % string formatting with str.format().
stealth/space-bunny-alpha — closed stale Launchpad LP1477638 closed as abandoned; no implementation discussion or linked PR/commit resolved the request to replace % formatting with .format().
qwen/qwen3.6-35b-a3b — — Request to replace % string formatting with .format() was closed without implementation. Maintainer comments confirm the codebase still uses %, indicating the change was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without a fix, the suggestion to replace % string formatting with .format() was likely abandoned or superseded by later codebase changes. No resolution or merge details were provided.
qwen/qwen3.6-35b-a3b — — The suggestion to use .format() instead of % formatting was resolved. The codebase had already adopted .format() in the trunk, so the issue was closed as addressed.
qwen/qwen3.6-35b-a3b — — Fixed. The codebase was updated to replace legacy % string formatting with the .format() method, aligning with Python 3 standards and resolving the reported style issue.
qwen3.6-35b-a3b-mtp-q6 — — Closed without a direct fix. The suggestion to replace % formatting with .format() was abandoned, likely superseded by Python 3 migration.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1477638 snapcraft uses % to format strings snapcraft (launchpad) closed Replaced legacy % string formatting with str.format in ubuntu-core/snapcraft PR #72 after tracking moved to GitHub issue #34.
81%