[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/__init__.py Corrected indent level on deprecation warning for one of the most central functions in Zope.

Garrett Smith garrett at mojave-corp.com
Mon May 31 11:40:20 EDT 2004


Log message for revision 25137:
Corrected indent level on deprecation warning for one of the most central functions in Zope.


-=-
Modified: Zope3/trunk/src/zope/component/__init__.py
===================================================================
--- Zope3/trunk/src/zope/component/__init__.py	2004-05-31 14:33:42 UTC (rev 25136)
+++ Zope3/trunk/src/zope/component/__init__.py	2004-05-31 15:40:19 UTC (rev 25137)
@@ -112,9 +112,9 @@
         context, interface, name = interface, name, context
         if name is None:
             name = ''
-            warnings.warn("getUtility(context, interface, name) is deprecated."
-                          "  Use getUtility(interface, name, context=context).",
-                          DeprecationWarning, warningLevel())
+        warnings.warn("getUtility(context, interface, name) is deprecated."
+                      "  Use getUtility(interface, name, context=context).",
+                      DeprecationWarning, warningLevel())
     return getService(Utilities, context=context).getUtility(interface, name)
 
 def queryUtility(interface, default=None, name='', context=None):




More information about the Zope3-Checkins mailing list