06bc8c52ca19764440cada72ed1c91596516e8fc,pyemma/_base/serialization/serialization.py,SerializableMixIn,__getstate__,#SerializableMixIn#,320

Before Change


        try:
            if _debug:
                logger.debug("get state of %s" % self)
            if not hasattr(self, "_serialize_version"):
                raise DeveloperError("The "{klass}" should define a static "_serialize_version" attribute."
                                     .format(klass=self.__class__))
            state = {"class_tree_versions": {}}
            // currently it is used to handle class renames etc.
            versions = state["class_tree_versions"]
            for c in self.__class__.mro():
                name = _importable_name(c)
                if hasattr(c, "_serialize_version"):
                    v = c._serialize_version
                else:
                    v = -1
                versions[name] = v

            // if we want to save the chain, do this now:
            if self._save_data_producer:

After Change


            versions = state["class_tree_versions"]
            for c in self.__class__.mro():
                name = _importable_name(c)
                try:
                    v = c._version_check()
                except (AttributeError, ClassVersionException):
                    v = -1
                versions[name] = v

            // if we want to save the chain, do this now:
            if self._save_data_producer:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 06bc8c52ca19764440cada72ed1c91596516e8fc
Time: 2017-12-20
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __getstate__


Project Name: jazzband/django-debug-toolbar
Commit Name: 963ec339d932d3888f79dea12d3d3a89cbd1f141
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/request_vars.py
Class Name: RequestVarsDebugPanel
Method Name: process_response


Project Name: matplotlib/matplotlib
Commit Name: d23bcea94a01a598de9619a1bf45b911120f7096
Time: 2019-01-08
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: _update_ticks