summaryrefslogtreecommitdiff
path: root/gitlab/base.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-07-21 21:15:48 +0200
committerGitHub <noreply@github.com>2019-07-21 21:15:48 +0200
commitf0e3daadb7f669b7d041a3024da238b54eaacda4 (patch)
treef574744e32782a455c991fa139b975dcd79c629d /gitlab/base.py
parent8d54cf57b03ff5509801c10d9dfe47e708173935 (diff)
parentb4b5decb7e49ac16d98d56547a874fb8f9d5492b (diff)
downloadgitlab-f0e3daadb7f669b7d041a3024da238b54eaacda4.tar.gz
Merge pull request #838 from python-gitlab/pickle-fix
fix: improve pickle support
Diffstat (limited to 'gitlab/base.py')
-rw-r--r--gitlab/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index d2e44b8..f81d039 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -52,7 +52,7 @@ class RESTObject(object):
def __setstate__(self, state):
module_name = state.pop("_module_name")
self.__dict__.update(state)
- self._module = importlib.import_module(module_name)
+ self.__dict__["_module"] = importlib.import_module(module_name)
def __getattr__(self, name):
try: