Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Mar 11, 2022
1 parent fccb79b commit ec567c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion min_loader.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9
3.4
10 changes: 5 additions & 5 deletions userge/sys_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ def __setattr__(self, *_):
def __delattr__(self, _):
pass

def __getattribute__(self, ___):
def __getattribute__(self, _):
___ = lambda _, __=_: _.__getattribute__(__) if __.__ne__('_') else _
_ = getattr(sys, '_getframe')(1)
while _:
_f, _n = _.f_code.co_filename, _.f_code.co_name
if _f.__contains__("exec") or _f.__eq__("<string>") and _n.__ne__("<module>"):
return _ST.__getattribute__(___) if ___.__ne__('_') else _ST
return ___(_ST)
if _f.__contains__("asyncio") and _n.__eq__("_run"):
__ = getattr(getattr(_.f_locals['self'], '_callback').__self__, '_coro').cr_frame
_f, _n = __.f_code.co_filename, __.f_code.co_name
if (_f.__contains__("dispatcher") and _n.__eq__("handler_worker") or
_f.__contains__("client") and ("start", "stop").__contains__(_n)):
break
return _ST.__getattribute__(___) if ___.__ne__('_') else _ST
return ___(_ST)
_ = _.f_back
_ = super().__getattribute__('_')
return _.__getattribute__(___) if ___.__ne__('_') else _
return ___(super().__getattribute__('_'))

def __repr__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion userge/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

__major__ = 1
__minor__ = 0
__micro__ = 0
__micro__ = 1

__python_version__ = f"{version_info[0]}.{version_info[1]}.{version_info[2]}"
__license__ = "[GNU GPL v3.0](https://github.com/UsergeTeam/Userge/blob/master/LICENSE)"
Expand Down

0 comments on commit ec567c4

Please sign in to comment.