mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 00:03:33 +00:00
11 lines
316 B
Python
11 lines
316 B
Python
# coding=utf-8
|
|
|
|
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
|