From ec08506704f70547632d0faa7ce3d06c8c6bbefe Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 2 Jul 2020 15:55:31 +0200 Subject: [PATCH] Remove getstate and setstate, because they are not needed anymore --- jedi/inference/compiled/access.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/jedi/inference/compiled/access.py b/jedi/inference/compiled/access.py index 2908f472..46dc8249 100644 --- a/jedi/inference/compiled/access.py +++ b/jedi/inference/compiled/access.py @@ -138,15 +138,6 @@ class AccessPath(object): def __init__(self, accesses): self.accesses = accesses - # Writing both of these methods here looks a bit ridiculous. However with - # the differences of Python 2/3 it's actually necessary, because we will - # otherwise have a accesses attribute that is bytes instead of unicode. - def __getstate__(self): - return self.accesses - - def __setstate__(self, value): - self.accesses = value - def create_access_path(inference_state, obj): access = create_access(inference_state, obj)