Skip to content

Commit 27536d7

Browse files
committed
Include 'enum' module as warnings indirectly imports it since python 3.6
Fixes #962 Related CPython change: http://bugs.python.org/issue28082
1 parent 263283b commit 27536d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

virtualenv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def get_installed_pythons():
155155
'_collections_abc',
156156
'_bootlocale',
157157
])
158+
if minver >= 6:
159+
REQUIRED_MODULES.extend(['enum'])
158160

159161
if is_pypy:
160162
# these are needed to correctly display the exceptions that may happen

0 commit comments

Comments
 (0)