Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7724a6c commit 0cfb81dCopy full SHA for 0cfb81d
1 file changed
Lib/pkgutil.py
@@ -307,9 +307,9 @@ def _get_delegate(self):
307
def get_filename(self, fullname=None):
308
fullname = self._fix_name(fullname)
309
mod_type = self.etc[2]
310
- if self.etc[2]==imp.PKG_DIRECTORY:
+ if mod_type==imp.PKG_DIRECTORY:
311
return self._get_delegate().get_filename()
312
- elif self.etc[2] in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION):
+ elif mod_type in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION):
313
return self.filename
314
return None
315
0 commit comments