[Zope3-checkins] SVN: Zope3/trunk/src/zope/deprecation/ Set substitutions for 'Id'

Dmitry Vasiliev dima at hlabs.spb.ru
Wed May 11 05:45:33 EDT 2005


Log message for revision 30324:
  Set substitutions for 'Id'
  

Changed:
  UU  Zope3/trunk/src/zope/deprecation/__init__.py
  UU  Zope3/trunk/src/zope/deprecation/deprecation.py
  _U  Zope3/trunk/src/zope/deprecation/tests.py

-=-
Modified: Zope3/trunk/src/zope/deprecation/__init__.py
===================================================================
--- Zope3/trunk/src/zope/deprecation/__init__.py	2005-05-11 09:34:12 UTC (rev 30323)
+++ Zope3/trunk/src/zope/deprecation/__init__.py	2005-05-11 09:45:33 UTC (rev 30324)
@@ -24,4 +24,3 @@
 # components without arnings being produced.
 
 __show__ = ShowSwitch()
-


Property changes on: Zope3/trunk/src/zope/deprecation/__init__.py
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: Zope3/trunk/src/zope/deprecation/deprecation.py
===================================================================
--- Zope3/trunk/src/zope/deprecation/deprecation.py	2005-05-11 09:34:12 UTC (rev 30323)
+++ Zope3/trunk/src/zope/deprecation/deprecation.py	2005-05-11 09:45:33 UTC (rev 30324)
@@ -26,6 +26,7 @@
 
 import zope.deprecation
 
+
 class ShowSwitch(object):
     """Simple stack-based switch."""
 
@@ -116,12 +117,12 @@
         locals = sys._getframe(1).f_locals
         if '__name__' in locals:
             modname = locals['__name__']
-            
+
         if not isinstance(sys.modules[modname], DeprecationProxy):
             sys.modules[modname] = DeprecationProxy(sys.modules[modname])
         sys.modules[modname].deprecate(specifier, message)
-        
 
+
     # ... that means the specifier is a method or attribute of the class
     if isinstance(specifier, types.FunctionType):
         return DeprecatedMethod(specifier, message)
@@ -134,5 +135,3 @@
             return DeprecatedGetSetProperty(prop, message)
         elif hasattr(prop, '__get__'):
             return DeprecatedGetProperty(prop, message)
-
-    


Property changes on: Zope3/trunk/src/zope/deprecation/deprecation.py
___________________________________________________________________
Name: svn:keywords
   + Id


Property changes on: Zope3/trunk/src/zope/deprecation/tests.py
___________________________________________________________________
Name: svn:keywords
   + Id



More information about the Zope3-Checkins mailing list