[Zope3-checkins]
SVN: zope.testing/trunk/src/zope/testing/testrunner/runner.py
Remove redundant global declaration.
Marius Gedminas
marius at pov.lt
Fri Aug 1 07:47:24 EDT 2008
Log message for revision 89119:
Remove redundant global declaration.
_layer_name_cache is never assigned in this function, so it's considered to be
a global already.
Changed:
U zope.testing/trunk/src/zope/testing/testrunner/runner.py
-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/runner.py 2008-08-01 11:43:28 UTC (rev 89118)
+++ zope.testing/trunk/src/zope/testing/testrunner/runner.py 2008-08-01 11:47:23 UTC (rev 89119)
@@ -647,7 +647,6 @@
to allow locating layers in cases where it would otherwise be
impossible.
"""
- global _layer_name_cache
if _layer_name_cache.has_key(layer_name):
return _layer_name_cache[layer_name]
layer_names = layer_name.split('.')
More information about the Zope3-Checkins
mailing list