Commit 7be15b5
committed
Fix AttributeError for 'im_func', 'func_code' in Python 3 compatibility
Simplified the introspection logic for hpilo.Ilo methods by unifying
Python 2 and 3 compatibility checks. This includes handling attributes
__code__/func_code and __defaults__/func_defaults.
This fix allows the module to function correctly in Python 2 and Python
3 environments.1 parent 50b4e0a commit 7be15b5
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments