(obj, name)
| 272 | |
| 273 | |
| 274 | def hasattr_checked(obj, name): |
| 275 | try: |
| 276 | getattr(obj, name) |
| 277 | except: |
| 278 | # i.e.: Handle any exception, not only AttributeError. |
| 279 | return False |
| 280 | else: |
| 281 | return True |
| 282 | |
| 283 | |
| 284 | def getattr_checked(obj, name): |
no outgoing calls
no test coverage detected