def _pickle_warning(self, obj):
    if self.warn:
        msg = ('jsonpickle cannot pickle %r: replaced with None' % obj)
        warnings.warn(msg)
def _pickle_warning(self, obj):
    if self.warn:
        msg = ('jsonpickle cannot pickle %r: replaced with None' % obj)
        warnings.warn(msg)