Skip to content

Commit 3ef4a6f

Browse files
authored
Merge pull request #580 from DimitriPapadopoulos/FLY
Apply ruff/flynt rules (FLY)
2 parents 4d033ed + c83f65c commit 3ef4a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/apigen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def discover_modules(self):
342342
root_uri = self._path2uri(os.path.join(self.root_path,
343343
dirpath))
344344
for dirname in dirnames[:]: # copy list - we modify inplace
345-
package_uri = '.'.join((root_uri, dirname))
345+
package_uri = f'{root_uri}.{dirname}'
346346
if (self._uri2path(package_uri) and
347347
self._survives_exclude(package_uri, 'package')):
348348
modules.append(package_uri)
@@ -351,7 +351,7 @@ def discover_modules(self):
351351
# Check filenames for modules
352352
for filename in filenames:
353353
module_name = filename[:-3]
354-
module_uri = '.'.join((root_uri, module_name))
354+
module_uri = f'{root_uri}.{module_name}'
355355
if (self._uri2path(module_uri) and
356356
self._survives_exclude(module_uri, 'module')):
357357
modules.append(module_uri)

0 commit comments

Comments
 (0)