From 6a364f852e19b57a8ac80d88b85f7db01701fb7a Mon Sep 17 00:00:00 2001 From: xyluo <36498464+Xiangyongluo@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:02:23 -0700 Subject: [PATCH] update github downloader --- pyufunc/util_git_pypi/_github.py | 2 +- pyufunc/{ => util_git_pypi}/static/user-agent-strings.json | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename pyufunc/{ => util_git_pypi}/static/user-agent-strings.json (100%) diff --git a/pyufunc/util_git_pypi/_github.py b/pyufunc/util_git_pypi/_github.py index 1784633..759533a 100644 --- a/pyufunc/util_git_pypi/_github.py +++ b/pyufunc/util_git_pypi/_github.py @@ -21,7 +21,7 @@ from pathlib import Path from pyufunc.pkg_utils import requires, import_package -path_user_agent_strings = Path(__file__).parent.parent.joinpath("static/user-agent-strings.json") +path_user_agent_strings = Path(__file__).parent.joinpath("static/user-agent-strings.json") with open(path_user_agent_strings, mode='r', encoding='utf-8') as f: _web_agent_str = f.read() diff --git a/pyufunc/static/user-agent-strings.json b/pyufunc/util_git_pypi/static/user-agent-strings.json similarity index 100% rename from pyufunc/static/user-agent-strings.json rename to pyufunc/util_git_pypi/static/user-agent-strings.json