File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1194,11 +1194,11 @@ def _module_function_glob(module, object_path):
1194
1194
# Skip adding all class methods on failure
1195
1195
pass
1196
1196
1197
- # Under the hood uses fnmatch, which uses os.path.normcase
1198
- # On windows this would cause issues with case insensitivity,
1199
- # but on all other operating systems there should be no issues .
1200
- return fnmatch . filter ( available_functions , object_path )
1201
-
1197
+ # Globbing must be done using fnmatch.fnmatchcase as
1198
+ # fnmatch.filter and fnmatch.fnmatch use os.path.normcase
1199
+ # which cause case insensitivity issues on Windows .
1200
+
1201
+ return [ func for func in available_functions if fnmatch . fnmatchcase ( func , object_path )]
1202
1202
1203
1203
# Setup wsgi application wrapper defined in configuration file.
1204
1204
You can’t perform that action at this time.
0 commit comments