aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/dbupdate.py
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2021-09-23 11:51:04 +1000
committerBen Sturmfels <ben@sturm.com.au>2021-09-23 11:51:04 +1000
commit6f48143f4c60c555b3f571007cdc929ce90920b1 (patch)
tree2a2333a365379d4c4c42faf79bcd9db20aaa8626 /mediagoblin/gmg_commands/dbupdate.py
parentf90707e22c0380bd0f17e2e724e58ecf91abd5a3 (diff)
downloadmediagoblin-6f48143f4c60c555b3f571007cdc929ce90920b1.tar.lz
mediagoblin-6f48143f4c60c555b3f571007cdc929ce90920b1.tar.xz
mediagoblin-6f48143f4c60c555b3f571007cdc929ce90920b1.zip
Apply pyupgrade --py36-plus.
This removes some 'u' prefixes and converts simple format() calls to f-strings.
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index c62de91e..c802b374 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -67,7 +67,7 @@ def gather_database_data(plugins):
for plugin in plugins:
try:
- models = import_component('{}.models:MODELS'.format(plugin))
+ models = import_component(f'{plugin}.models:MODELS')
except ImportError as exc:
_log.debug('No models found for {}: {}'.format(
plugin,
@@ -115,7 +115,7 @@ def run_foundations(db, global_config):
for plugin in plugins:
try:
foundations = import_component(
- '{}.models:FOUNDATIONS'.format(plugin))
+ f'{plugin}.models:FOUNDATIONS')
all_foundations.append((plugin, foundations))
except ImportError as exc:
continue