[Python-checkins] cpython (merge 3.3 -> default): Closes #18435: Merged fix from 3.3.
vinay.sajip
python-checkins at python.org
Fri Jul 12 22:20:14 CEST 2013
http://hg.python.org/cpython/rev/113bfefbe5c5
changeset: 84592:113bfefbe5c5
parent: 84586:24a55f04a571
parent: 84591:fc340fcd43d2
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Fri Jul 12 21:13:01 2013 +0100
summary:
Closes #18435: Merged fix from 3.3.
files:
Lib/venv/__init__.py | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -37,15 +37,10 @@
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 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list