~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/exporter/__init__.py

  • Committer: Paul Larson
  • Date: 2016-05-12 01:51:23 UTC
  • mto: This revision was merged to the branch mainline in revision 4344.
  • Revision ID: paul.larson@canonical.com-20160512015123-iw2n4zu2q1973e4g
Remove the deprecation warning for get_session_data_subset

It seems that get_session_data_subset was marked deprecated in favor of
dump_from_session_manager, but dump_from_session_manager actually calls
get_session_data_subset and then just dumps it to a stream. Since I'm
guessing there could be some cases where we might want this as a return
value rather than a stream, I'm proposing that we remove the deprecation
warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
from plainbox.i18n import gettext as _
35
35
from plainbox.abc import ISessionStateExporter
36
 
from plainbox.impl import deprecated
37
36
 
38
37
logger = getLogger("plainbox.exporter")
39
38
 
194
193
        """
195
194
        self.dump(self.get_session_data_subset(session_manager), stream)
196
195
 
197
 
    @deprecated('0.21', 'use .dump_from_session_manager instead')
198
196
    def get_session_data_subset(self, session_manager):
199
197
        """
200
198
        Compute a subset of session data.