Skip to content

Commit 25605df

Browse files
committed
[add-libraries-chatbots] exclude winreg lib
1 parent 0c6a7e9 commit 25605df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if __name__ == '__main__':
22
import pkgutil
3+
blacklist = ['winreg']
34
modules = (name for _, name, is_pkg in pkgutil.iter_modules()
4-
if is_pkg)
5+
if is_pkg and name not in blacklist)
56
map(__import__, modules)

0 commit comments

Comments
 (0)