Skip to content

Commit

Permalink
No need to construct a dict for the state.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 8, 2022
1 parent f039852 commit c017444
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zipp.py
Expand Up @@ -73,10 +73,11 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def __getstate__(self):
return dict(args=self.__args, kwargs=self.__kwargs)
return self.__args, self.__kwargs

def __setstate__(self, state):
super().__init__(*state['args'], **state['kwargs'])
args, kwargs = state
super().__init__(*args, **kwargs)


class CompleteDirs(InitializedState, zipfile.ZipFile):
Expand Down

0 comments on commit c017444

Please sign in to comment.