From 9aebeea44413857fa59f99550532e7d9384798c3 Mon Sep 17 00:00:00 2001 From: liuxinwei Date: Wed, 26 Jun 2024 17:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/topics/meta-prog/wrapper.ipynb | 4 +--- src/d2py/__init__.py | 2 +- src/d2py/tasks/utils.py | 2 +- src/d2py/utils/log_config.py | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/topics/meta-prog/wrapper.ipynb b/doc/topics/meta-prog/wrapper.ipynb index ea4400ec..3163364a 100644 --- a/doc/topics/meta-prog/wrapper.ipynb +++ b/doc/topics/meta-prog/wrapper.ipynb @@ -182,9 +182,7 @@ "metadata": {}, "outputs": [], "source": [ - "from bytecode import Bytecode, Instr\n", - "\n", - "\n" + "from bytecode import Bytecode, Instr" ] }, { diff --git a/src/d2py/__init__.py b/src/d2py/__init__.py index 23fefc6e..aed28644 100644 --- a/src/d2py/__init__.py +++ b/src/d2py/__init__.py @@ -1,2 +1,2 @@ """Dive into Python.""" -__version__ = '0.5.12' +__version__ = '0.5.13' diff --git a/src/d2py/tasks/utils.py b/src/d2py/tasks/utils.py index b3cfc468..8cdacd2c 100644 --- a/src/d2py/tasks/utils.py +++ b/src/d2py/tasks/utils.py @@ -1,6 +1,6 @@ """任务型事务辅助函数""" import asyncio -import logging +# import logging import textwrap async def communicate_cmd(cmd: str, cwd: str|None=None, indent: int=2, **kwds)->str: diff --git a/src/d2py/utils/log_config.py b/src/d2py/utils/log_config.py index 05be50d1..d53157e0 100644 --- a/src/d2py/utils/log_config.py +++ b/src/d2py/utils/log_config.py @@ -10,8 +10,8 @@ def config_logging( "urllib3", "markdown_it", "ablog" }, - file_formatter: str="%(levelname)s|%(asctime)s|%(name)s| -> %(message)s\n|==>%(module)s.%(funcName)s@: %(pathname)s:%(lineno)d", - stream_formatter: str="%(levelname)s|%(asctime)s|%(name)s| -> %(message)s", + file_formatter: str="%(levelname)s|%(asctime)s|%(name)s| >>> %(message)s\n|==>%(module)s.%(funcName)s@: %(pathname)s:%(lineno)d", + stream_formatter: str="%(levelname)s|%(asctime)s|%(name)s| >>> %(message)s", **kwargs): """配置 logging