1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-29 02:55:52 +00:00
bazarr/libs/subliminal_patch/refiners/util.py

12 lines
316 B
Python
Raw Normal View History

# coding=utf-8
2019-09-17 02:04:27 +00:00
from __future__ import absolute_import
import types
from subliminal_patch.http import TimeoutSession
def fix_session_bases(obj):
obj.__class__ = type("PatchedTimeoutSession", (TimeoutSession,),
{"request": types.MethodType(TimeoutSession.request, obj)})
return obj