Skip to content

Commit e4a7924

Browse files
author
Matthias Koeppe
committed
src/sage/misc/rest_index_of_methods.py: Codestyle fix
1 parent f487209 commit e4a7924

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/misc/rest_index_of_methods.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ def can_import(f):
264264
return False
265265
return True
266266

267-
functions = {getattr(root,name):name for name,f in root.__dict__.items() if
268-
(not name.startswith('_') and # private functions
269-
can_import(f) and # unresolved lazy imports
270-
not hasattr(f,'issue_number') and # deprecated functions
271-
not inspect.isclass(f) and # classes
272-
callable(getattr(f,'__func__',f)) and # e.g. GenericGraph.graphics_array_defaults
273-
local_filter(f,name)) # possibly filter imported functions
267+
functions = {getattr(root, name): name for name, f in root.__dict__.items() if
268+
(not name.startswith('_') and # private functions
269+
can_import(f) and # unresolved lazy imports
270+
not hasattr(f, 'issue_number') and # deprecated functions
271+
not inspect.isclass(f) and # classes
272+
callable(getattr(f, '__func__', f)) and # e.g. GenericGraph.graphics_array_defaults
273+
local_filter(f, name)) # possibly filter imported functions
274274
}
275275

276276
return list(functions.keys()), functions

0 commit comments

Comments
 (0)