Changeset 1697

Show
Ignore:
Timestamp:
09/20/08 21:26:38 (2 months ago)
Author:
nick
Message:

Added some code formatting cleanups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/branches/gerard-celementtree-364/pyamf/util/__init__.py

    r1688 r1697  
    3838 
    3939cET_Element_Type = None 
     40 
    4041if cET: 
    4142    cET_Element_Type = type(cET.Element('<e/>')) 
     
    653654 
    654655def is_ET_element(obj): 
     656    """ 
     657    Determines if the supplied C{obj} param is a valid ElementTree element. 
     658    """ 
    655659    # This works well for regular ElementTree, but NOT for cElementTree 
    656660    if isinstance(obj, ET._ElementInterface): 
    657661        return True 
     662 
    658663    if cET_Element_Type and isinstance(obj, cET_Element_Type): 
    659664        return True 
     665 
    660666    return False 
    661667 
     
    698704try: 
    699705    from cpyamf.util import BufferedByteStream 
     706 
    700707    class StringIOProxy(BufferedByteStream): 
     708        _wrapped_class = None 
     709 
    701710        def __init__(self, *args, **kwargs): 
    702711            BufferedByteStream.__init__(self, *args, **kwargs) 
    703712            self._buffer = self 
    704         _wrapped_class = None 
    705         pass 
     713 
    706714    class DataTypeMixIn(BufferedByteStream): 
    707715        ENDIAN_NETWORK = "!"