summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/venv/__init__.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index ecdb68e..4adde5f 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -37,15 +37,10 @@ try:
import threading
except ImportError:
threading = None
+import types
logger = logging.getLogger(__name__)
-class Context:
- """
- Holds information about a current venv creation/upgrade request.
- """
- pass
-
class EnvBuilder:
"""
@@ -116,7 +111,7 @@ class EnvBuilder:
if os.path.exists(env_dir) and self.clear:
self.clear_directory(env_dir)
- context = Context()
+ context = types.SimpleNamespace()
context.env_dir = env_dir
context.env_name = os.path.split(env_dir)[1]
context.prompt = '(%s) ' % context.env_name