³ò
OÉcIc           @   s2   d  Z  d e f d „  ƒ  YZ d „  Z d „  Z d S(   s~   MakeStatic and MakeClass

These functions are used to make all the instance methods in a class
into static or class methods.

t   StaticMethodsErrorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s8   /var/lib/python-support/python2.5/rdiff_backup/static.pyR       s    c         C   sG   x@ |  i  D]5 } | d d j o t |  i  | ƒ |  i  | <q
 q
 Wd S(   s˜   turn instance methods into static ones

	The methods (that don't begin with _) of any class that
	subclasses this will be turned into static methods.

	i    t   _N(   t   __dict__t   staticmethod(   t   clst   name(    (    s8   /var/lib/python-support/python2.5/rdiff_backup/static.pyt
   MakeStatic   s    
 c         C   sG   x@ |  i  D]5 } | d d j o t |  i  | ƒ |  i  | <q
 q
 Wd S(   s=   Turn instance methods into classmethods.  Ignore _ like abovei    R   N(   R   t   classmethod(   R   R   (    (    s8   /var/lib/python-support/python2.5/rdiff_backup/static.pyt	   MakeClass(   s    
 N(   t   __doc__t	   ExceptionR    R   R
   (    (    (    s8   /var/lib/python-support/python2.5/rdiff_backup/static.pys   <module>   s   	