From 2cca716167e49dc5db712ab740c71cdd866bf400 Mon Sep 17 00:00:00 2001 From: monosans Date: Thu, 8 Feb 2024 09:27:42 +0300 Subject: [PATCH] Remove monkeypatch --- proxy_scraper_checker/__init__.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/proxy_scraper_checker/__init__.py b/proxy_scraper_checker/__init__.py index d3b0451..e69de29 100644 --- a/proxy_scraper_checker/__init__.py +++ b/proxy_scraper_checker/__init__.py @@ -1,12 +0,0 @@ -from __future__ import annotations - -import os as _os - -# Monkeypatch os.link to make aiofiles work on Termux -if not hasattr(_os, "link"): - from typing_extensions import Any as _Any - - def _link(*args: _Any, **kwargs: _Any) -> None: # noqa: ARG001 - raise RuntimeError - - _os.link = _link