Fix importer call

This commit is contained in:
Marcin Bachry 2016-08-21 22:07:18 +02:00
parent abe8f5e23f
commit 678750c8f8
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ class Session(FSCollector):
# This method is sometimes invoked when AssertionRewritingHook, which
# does not define a get_filename method, is already in place:
try:
path = loader.get_filename()
path = loader.get_filename(x)
except AttributeError:
# Retrieve path from AssertionRewritingHook:
path = loader.modules[x][0].co_filename