Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Li
e02eb70cb3 pkgutil.iter_modules accepts iterable of str (#2195) 2018-06-05 09:58:51 -07:00
Christopher Schramm
7f34bbcb88 Add pkgutil.ModuleInfo (#2010) 2018-04-04 15:15:43 -07:00
Kenny Do
26ea6c0740 pkgutils.walk_packages takes optional list of str for path (#1725) 2017-11-09 05:57:29 -08:00
Josh Staiger
8b367c770b Make pkgutil.get_data return Optional[bytes] (#1714)
As per the docs (and implementation):

- https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data

If the package cannot be located or loaded ... then None is returned.
2017-11-05 14:00:51 -08:00
Lukasz Langa
5f416fae64 Add missing List imports. 2016-12-21 01:06:52 -08:00
Jordan Pittier
83802c6724 stdlib/2and3/pkgutil: Arg 1 to "iter_modules" should be List[str] (#625)
According to https://docs.python.org/2.7/library/pkgutil.html#pkgutil.iter_modules and https://docs.python.org/3/library/pkgutil.html#pkgutil.iter_modules: "path should be either None or a list of paths to look for modules in."
2016-10-21 16:56:34 -07:00
Valérian Rousset
5a5138aa1e Add stubs for pkgutils (#431)
* py3 done (py2 pass empty)

* remove dangling importlib

* importlib.abc only exists in py3
2016-08-03 15:40:37 -07:00