snapcraft uses % to format strings
Bug #1477638 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Leo Arias |
Bug Description
Instead, it should use the .format method.
From https:/
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.
Related branches
lp:~elopio/snapcraft/fix1477638-format_strings1
- Michael Terry (community): Approve
-
Diff: 363 lines (+107/-37)8 files modifiedsnapcraft/cmds.py (+19/-16)
snapcraft/common.py (+20/-5)
snapcraft/dirs.py (+3/-3)
snapcraft/plugin.py (+9/-7)
snapcraft/tests/__init__.py (+8/-3)
snapcraft/tests/test_common.py (+42/-0)
snapcraft/tests/test_yaml.py (+3/-0)
snapcraft/yaml.py (+3/-3)
lp:~elopio/snapcraft/fix1477638-format_strings-2
- Michael Terry (community): Approve
-
Diff: 163 lines (+66/-29)2 files modifiedsnapcraft/plugin.py (+6/-7)
snapcraft/tests/test_plugin.py (+60/-22)
lp:~elopio/snapcraft/fix1477638-format_strings-3
- Michael Terry (community): Approve
-
Diff: 70 lines (+31/-7)2 files modifiedsnapcraft/cmds.py (+4/-1)
snapcraft/tests/test_cmds.py (+27/-6)
Changed in snapcraft: | |
status: | New → In Progress |
assignee: | nobody → Leo Arias (elopio) |
Changed in snapcraft: | |
status: | Invalid → Fix Committed |
Changed in snapcraft: | |
milestone: | none → 0.5 |
Changed in snapcraft: | |
importance: | Undecided → Low |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Current from trunk: http:// pastebin. ubuntu. com/12529317/