diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-26 05:30:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-26 05:33:19 +0300 |
commit | 646ef49e197d14e7717547a3f9ed119f5a79e2a8 (patch) | |
tree | 29daa5c9d2cc82dd6c7cd1112449558111d6f5d2 /release/scripts/modules/bl_ui_utils | |
parent | 2db4a81fe4af0a003e545b6834c038eb7b704744 (diff) |
Cleanup: use percentage formatting
`str.format` and `f-string` use was minimal.
Prefer using a single style of string formatting
unless an alternative is more widely adopted.
Diffstat (limited to 'release/scripts/modules/bl_ui_utils')
-rw-r--r-- | release/scripts/modules/bl_ui_utils/bug_report_url.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/bl_ui_utils/bug_report_url.py b/release/scripts/modules/bl_ui_utils/bug_report_url.py index 2adee70bc86..5676e0d6815 100644 --- a/release/scripts/modules/bl_ui_utils/bug_report_url.py +++ b/release/scripts/modules/bl_ui_utils/bug_report_url.py @@ -31,13 +31,13 @@ def url_prefill_from_blender(addon_info=None): fh.write("**System Information**\n") fh.write( - "Operating system: {!s} {!s} Bits\n".format( + "Operating system: %s %d Bits\n" % ( platform.platform(), struct.calcsize("P") * 8, ) ) fh.write( - "Graphics card: {!s} {!s} {!s}\n".format( + "Graphics card: %s %s %s\n" % ( bgl.glGetString(bgl.GL_RENDERER), bgl.glGetString(bgl.GL_VENDOR), bgl.glGetString(bgl.GL_VERSION), @@ -48,7 +48,7 @@ def url_prefill_from_blender(addon_info=None): "**Blender Version**\n" ) fh.write( - "Broken: version: {!s}, branch: {!s}, commit date: {!s} {!s}, hash: `rB{!s}`\n".format( + "Broken: version: %s, branch: %s, commit date: %s %s, hash: `rB%s`\n" % ( bpy.app.version_string, bpy.app.build_branch.decode('utf-8', 'replace'), bpy.app.build_commit_date.decode('utf-8', 'replace'), |