def __init__(self, unpicklable=True, make_refs=True, max_depth=None, backend=None, keys=False, warn=False, max_iter=None, numeric_keys=False, use_decimal=False, use_base85=False, fail_safe=None):
    self.unpicklable = unpicklable
    self.make_refs = make_refs
    self.backend = (backend or json)
    self.keys = keys
    self.warn = warn
    self.numeric_keys = numeric_keys
    self.use_base85 = (use_base85 and (not PY2))
    self._depth = (- 1)
    self._max_depth = max_depth
    self._objs = {}
    self._seen = []
    self._max_iter = max_iter
    self._use_decimal = use_decimal
    if self.use_base85:
        self._bytes_tag = tags.B85
        self._bytes_encoder = util.b85encode
    else:
        self._bytes_tag = tags.B64
        self._bytes_encoder = util.b64encode
    self.fail_safe = fail_safe
def __init__(self, unpicklable=True, make_refs=True, max_depth=None, backend=None, keys=False, warn=False, max_iter=None, numeric_keys=False, use_decimal=False, use_base85=False, fail_safe=None):
    self.unpicklable = unpicklable
    self.make_refs = make_refs
    self.backend = (backend or json)
    self.keys = keys
    self.warn = warn
    self.numeric_keys = numeric_keys
    self.use_base85 = (use_base85 and (not PY2))
    self._depth = (- 1)
    self._max_depth = max_depth
    self._objs = {}
    self._seen = []
    self._max_iter = max_iter
    self._use_decimal = use_decimal
    if self.use_base85:
        self._bytes_tag = tags.B85
        self._bytes_encoder = util.b85encode
    else:
        self._bytes_tag = tags.B64
        self._bytes_encoder = util.b64encode
    self.fail_safe = fail_safe