diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-03-05 23:12:19 +1100 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-03-05 23:12:19 +1100 |
commit | dec47c7102cf0aa3a4debf002928db8e460c0d71 (patch) | |
tree | 47631fc15c7af172aa699506adf3d76d3a71976c /mediagoblin/gmg_commands/assetlink.py | |
parent | 5f3a782fef4855e10b7259624a14d8afb0f7be93 (diff) | |
download | mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.lz mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.xz mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.zip |
Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.
Diffstat (limited to 'mediagoblin/gmg_commands/assetlink.py')
-rw-r--r-- | mediagoblin/gmg_commands/assetlink.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/assetlink.py b/mediagoblin/gmg_commands/assetlink.py index 148ebe9e..2f54808e 100644 --- a/mediagoblin/gmg_commands/assetlink.py +++ b/mediagoblin/gmg_commands/assetlink.py @@ -85,7 +85,7 @@ def link_theme_assets(theme, link_dir, printer=simple_printer): os.symlink( theme['assets_dir'].rstrip(os.path.sep), link_dir) - printer("Linked the theme's asset directory:\n %s\nto:\n %s\n" % ( + printer("Linked the theme's asset directory:\n {}\nto:\n {}\n".format( theme['assets_dir'], link_dir)) @@ -128,7 +128,7 @@ def link_plugin_assets(plugin_static, plugins_link_dir, printer=simple_printer): os.symlink( plugin_static.file_path.rstrip(os.path.sep), link_dir) - printer('Linked asset directory for plugin "%s":\n %s\nto:\n %s\n' % ( + printer('Linked asset directory for plugin "{}":\n {}\nto:\n {}\n'.format( plugin_static.name, plugin_static.file_path.rstrip(os.path.sep), link_dir)) |