SVN: zope.testing/trunk/src/zope/testing/testrunner/runner.py Remove redundant global declaration.

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20080801114724.45828399B7__35388.9899598018$1217591340$gmane$org@mail.zope.org>
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('.')
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.