Changeset 1697
- Timestamp:
- 09/20/08 21:26:38 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pyamf/branches/gerard-celementtree-364/pyamf/util/__init__.py
r1688 r1697 38 38 39 39 cET_Element_Type = None 40 40 41 if cET: 41 42 cET_Element_Type = type(cET.Element('<e/>')) … … 653 654 654 655 def is_ET_element(obj): 656 """ 657 Determines if the supplied C{obj} param is a valid ElementTree element. 658 """ 655 659 # This works well for regular ElementTree, but NOT for cElementTree 656 660 if isinstance(obj, ET._ElementInterface): 657 661 return True 662 658 663 if cET_Element_Type and isinstance(obj, cET_Element_Type): 659 664 return True 665 660 666 return False 661 667 … … 698 704 try: 699 705 from cpyamf.util import BufferedByteStream 706 700 707 class StringIOProxy(BufferedByteStream): 708 _wrapped_class = None 709 701 710 def __init__(self, *args, **kwargs): 702 711 BufferedByteStream.__init__(self, *args, **kwargs) 703 712 self._buffer = self 704 _wrapped_class = None 705 pass 713 706 714 class DataTypeMixIn(BufferedByteStream): 707 715 ENDIAN_NETWORK = "!"
