0.1.49 修复装饰器Bug

This commit is contained in:
guanjihuan 2023-11-27 16:51:44 +08:00
parent 7a9b86f791
commit bd8930d03e
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.1.48
version = 0.1.49
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: guan
Version: 0.1.48
Version: 0.1.49
Summary: An open source python package
Home-page: https://py.guanjihuan.com
Author: guanjihuan

View File

@ -2,8 +2,8 @@
# 函数的装饰器,用于软件包的统计
def function_decorator(func):
def wrapper():
func()
def wrapper(*args, **kwargs):
func(*args, **kwargs)
import guan
guan.statistics_of_guan_package(func.__name__)
return wrapper