7626:7f643d41464e | 7628:f904d0eef264 |
---|---|
56 d = {} | 56 d = {} |
57 for name in names: | 57 for name in names: |
58 try: | 58 try: |
59 attribute = getattr(var, name) | 59 attribute = getattr(var, name) |
60 d[name] = attribute | 60 d[name] = attribute |
61 except Exception: | 61 except Exception: # secok |
62 pass # if we can't get it, simply ignore it | 62 pass # if we can't get it, simply ignore it |
63 | 63 |
64 return d | 64 return d |
65 | 65 |
66 | 66 |
89 d = {} | 89 d = {} |
90 for name in names: | 90 for name in names: |
91 try: | 91 try: |
92 attribute = getattr(var, name) | 92 attribute = getattr(var, name) |
93 d[name] = attribute | 93 d[name] = attribute |
94 except Exception: | 94 except Exception: # secok |
95 pass # if we can't get it, simply ignore it | 95 pass # if we can't get it, simply ignore it |
96 | 96 |
97 yield -1, d | 97 yield -1, d |
98 while True: | 98 while True: |
99 yield -2, {} | 99 yield -2, {} |
651 (frozenset, setResolver), | 651 (frozenset, setResolver), |
652 ] | 652 ] |
653 | 653 |
654 try: | 654 try: |
655 _TypeMap.append((long, None)) # __IGNORE_WARNING__ | 655 _TypeMap.append((long, None)) # __IGNORE_WARNING__ |
656 except Exception: | 656 except Exception: # secok |
657 pass # not available on all Python versions | 657 pass # not available on all Python versions |
658 | 658 |
659 try: | 659 try: |
660 _TypeMap.append((unicode, None)) # __IGNORE_WARNING__ | 660 _TypeMap.append((unicode, None)) # __IGNORE_WARNING__ |
661 except Exception: | 661 except Exception: # secok |
662 pass # not available on all Python versions | 662 pass # not available on all Python versions |
663 | 663 |
664 try: | 664 try: |
665 import array | 665 import array |
666 _TypeMap.append((array.array, arrayResolver)) | 666 _TypeMap.append((array.array, arrayResolver)) |