Author: rjollos
Date: Thu Aug 8 07:53:11 2013
New Revision: 1511609
URL: http://svn.apache.org/r1511609
Log:
Whitespace cleanup.
Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py?rev=1511609&r1=1511608&r2=1511609&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py Thu Aug 8
07:53:11 2013
@@ -1,3 +1,5 @@
+# -*- coding: UTF-8 -*-
+#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -47,10 +49,12 @@ class ComponentEnvironmentContext(object
def __init__(self, env, component):
self._env = env
self._component = component
+
def __enter__(self):
self._old_env = self._component.env
self._env.component_activated(self._component)
return self
+
def __exit__(self, type, value, traceback):
self._old_env.component_activated(self._component)
@@ -262,6 +266,7 @@ class Environment(trac.env.Environment):
# replace trac.env.Environment with Environment
trac.env.Environment = Environment
+
# this must follow the monkey patch (trac.env.Environment) above, otherwise
# trac.test.EnvironmentStub will not be correct as the class will derive from
# not replaced trac.env.Environment
@@ -333,6 +338,7 @@ class EnvironmentStub(trac.test.Environm
# replace trac.test.EnvironmentStub
trac.test.EnvironmentStub = EnvironmentStub
+
class ProductEnvironment(Component, ComponentManager):
"""Bloodhound product-aware environment manager.