authentication: run modernize for python3

This commit is contained in:
RhodeCode Admin 2023-07-18 14:26:37 +02:00
parent 4026ee36ee
commit a6e9ccf9e0
17 changed files with 34 additions and 65 deletions

View file

@ -1,5 +1,3 @@
# Copyright (C) 2012-2023 RhodeCode GmbH
#
# This program is free software: you can redistribute it and/or modify
@ -121,7 +119,7 @@ class AuthnRootResource(AuthnResourceBase):
counter = 1
current = name
while current in self._store.keys():
current = '{}{}'.format(name, counter)
current = f'{name}{counter}'
counter += 1
if counter > limit:
raise ConfigurationError(