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/tools/processing.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/tools/processing.py')
-rw-r--r-- | mediagoblin/tools/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tools/processing.py b/mediagoblin/tools/processing.py index aa086a30..f9efeba7 100644 --- a/mediagoblin/tools/processing.py +++ b/mediagoblin/tools/processing.py @@ -47,7 +47,7 @@ def json_processing_callback(entry): Send an HTTP post to the registered callback url, if any. ''' if not entry.processing_metadata: - _log.debug('No processing callback URL for {}'.format(entry)) + _log.debug(f'No processing callback URL for {entry}') return url = entry.processing_metadata[0].callback_url @@ -76,7 +76,7 @@ def json_processing_callback(entry): try: request.urlopen(request) - _log.debug('Processing callback for {} sent'.format(entry)) + _log.debug(f'Processing callback for {entry} sent') return True except request.HTTPError: |