authentication: run modernize for python3
This commit is contained in:
parent
4026ee36ee
commit
a6e9ccf9e0
17 changed files with 34 additions and 65 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue