Skip to content

Commit

Permalink
small compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Nov 5, 2024
1 parent aad7ccd commit 2e9f749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sisyphus/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def get_object_state(obj):
return str(obj)

if hasattr(obj, "__getnewargs_ex__"):
return obj.__getnewargs_ex__()
return obj.__getnewargs_ex__(), None
elif hasattr(obj, "__getnewargs__"):
return obj.__getnewargs__()
return obj.__getnewargs__(), None

if hasattr(obj, "__sis_state__"):
state = obj.__sis_state__()
Expand Down

0 comments on commit 2e9f749

Please sign in to comment.