1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-02 13:04:50 +00:00
bazarr/libs/subliminal_patch/refiners/util.py

10 lines
277 B
Python

# coding=utf-8
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