diff --git a/Lib/inspect.py b/Lib/inspect.py index 746f6e4f9f9..5d33f0d445f 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -32,7 +32,7 @@ __author__ = ('Ka-Ping Yee ', 'Yury Selivanov ') - + __all__ = [ "ArgInfo", "Arguments", @@ -131,7 +131,7 @@ "walktree", ] - + import abc import ast import dis @@ -591,7 +591,7 @@ def getmembers_static(object, predicate=None): without triggering dynamic lookup via the descriptor protocol, __getattr__ or __getattribute__. Optionally, only return members that satisfy a given predicate. - + Note: this function may not be able to retrieve all members that getmembers can fetch (like dynamically created attributes) and may find members that getmembers can't (like descriptors diff --git a/Lib/test/test_getpath.py b/Lib/test/test_getpath.py index 3fb1b280031..232b6805284 100644 --- a/Lib/test/test_getpath.py +++ b/Lib/test/test_getpath.py @@ -534,7 +534,7 @@ def test_symlink_buildpath_macos(self): VERSION_MINOR=8, # of testing PYWINVER=None, EXE_SUFFIX=None, - + ENV_PATH="", ENV_PYTHONHOME="", ENV_PYTHONEXECUTABLE="", diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index c25256dfa26..56168817a27 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -109,7 +109,7 @@ def istest(self, predicate, exp): def test__all__(self): support.check__all__(self, inspect, not_exported=("k", "v", "mod_dict", "modulesbyfile")) - + def generator_function_example(self): for i in range(2): yield i