Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fbbb0c

Browse files
committed
splitext returns with dot
1 parent f93972d commit 0fbbb0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/utils/module_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def find_module(name, path=None):
7474
return filename
7575
else:
7676
file.close()
77-
if os.path.splitext(filename)[1] in [".py", "pyc"]:
77+
if os.path.splitext(filename)[1] in [".py", ".pyc"]:
7878
return filename
7979
else:
8080
return None

0 commit comments

Comments
 (0)