diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-09-23 11:51:04 +1000 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-09-23 11:51:04 +1000 |
commit | 6f48143f4c60c555b3f571007cdc929ce90920b1 (patch) | |
tree | 2a2333a365379d4c4c42faf79bcd9db20aaa8626 /mediagoblin/gmg_commands/alembic_commands.py | |
parent | f90707e22c0380bd0f17e2e724e58ecf91abd5a3 (diff) | |
download | mediagoblin-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/alembic_commands.py')
-rw-r--r-- | mediagoblin/gmg_commands/alembic_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/alembic_commands.py b/mediagoblin/gmg_commands/alembic_commands.py index f5f982d1..0b22bce6 100644 --- a/mediagoblin/gmg_commands/alembic_commands.py +++ b/mediagoblin/gmg_commands/alembic_commands.py @@ -35,7 +35,7 @@ class FudgedCommandLine(config.CommandLine): plugins = global_config.get('plugins', {}).keys() for plugin in plugins: try: - import_component('{}.models:MODELS'.format(plugin)) + import_component(f'{plugin}.models:MODELS') except ImportError: # It doesn't really matter if there's no models to import # here. |