Skip to content

Commit

Permalink
[lang] Replace keywords in python (#4606)
Browse files Browse the repository at this point in the history
* [lang] Replace keywords in python

* prefix origin and replace
  • Loading branch information
Leonz5288 authored Mar 23, 2022
1 parent 2d9d626 commit 13f2bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/taichi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
if sys.version_info.minor < 7:
for name, alter in __deprecated_names__.items():
exec(f'{name} = {alter}')
for attribute, (message, func) in __customized_deprecations__.items():
exec(f'{attribute} = {func}')
for _origin, (_msg, _replace) in __customized_deprecations__.items():
exec(f'{_origin} = {_replace}')
else:

def __getattr__(attr):
Expand Down

0 comments on commit 13f2bc8

Please sign in to comment.