Skip to content

Commit 4b07c82

Browse files
Fixed Bug
name argument bug from Logger Class
1 parent 8e7e26e commit 4b07c82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

addons/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .classes import *
22
author="Vahab Programmer https://github.com/Vahab-Programmer"
3-
version="1.0.0"
3+
version="1.0.1"

addons/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SpecialAscii:
6868
class Logger:
6969
colorized={DEBUG:SpecialAscii.bright_cyan+"DEBUG"+SpecialAscii.reset,INFO:SpecialAscii.bright_green+"INFO"+SpecialAscii.reset,WARNING:SpecialAscii.bright_yellow+"WARNING"+SpecialAscii.reset,ERROR:SpecialAscii.red+"ERROR"+SpecialAscii.reset,CRITICAL:SpecialAscii.bright_white+SpecialAscii.bg_red+"CRITICAL"+SpecialAscii.reset,UNKNOWN:SpecialAscii.white + SpecialAscii.bg_purple+"UNKNOWN"+SpecialAscii.reset}
7070
non_colorized={DEBUG:"DEBUG",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",CRITICAL:"CRITICAL",UNKNOWN:"UNKNOWN"}
71-
def __init__(self,name:str=__name__,log_level:int=INFO,color:bool=True,std_out=stdout,std_err=stderr):
71+
def __init__(self,name:str,log_level:int=INFO,color:bool=True,std_out=stdout,std_err=stderr):
7272
self.__name=name
7373
self.__textmap=self.colorized if color else self.non_colorized
7474
self.__level=log_level

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from setuptools import setup, find_packages
2-
setup(name="addons",version="1.0.0",packages=find_packages(),install_requires=[],author="Vahab Programmer",author_email="vahab.goudarzi.2011@gamil.com",description="Python Addons",long_description=open("README.md").read(),long_description_content_type="text/markdown",url="https://github.com/Vahab-Programmer/Python-Addons",classifiers=["Programming Language :: Python :: 3","License :: OSI Approved :: MIT License","Operating System :: OS Independent",],python_requires='>=3.8')
2+
setup(name="addons",version="1.0.1",packages=find_packages(),install_requires=[],author="Vahab Programmer",author_email="vahab.goudarzi.2011@gamil.com",description="Python Addons",long_description=open("README.md").read(),long_description_content_type="text/markdown",url="https://github.com/Vahab-Programmer/Python-Addons",classifiers=["Programming Language :: Python :: 3","License :: OSI Approved :: MIT License","Operating System :: OS Independent",],python_requires='>=3.8')

0 commit comments

Comments
 (0)