diff --git a/python/grass/pygrass/gis/__init__.py b/python/grass/pygrass/gis/__init__.py index 6a5f9166da2..61768859231 100644 --- a/python/grass/pygrass/gis/__init__.py +++ b/python/grass/pygrass/gis/__init__.py @@ -271,7 +271,7 @@ def mapsets(self, pattern=None, permissions=True): [...] """ - mapsets = list(self) + mapsets = [mapset for mapset in self] # noqa: C416 if permissions: mapsets = [ mapset