File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1919# Configure UTF-8 for Windows
2020if sys .platform == 'win32' :
2121 import io
22+
2223 sys .stdout = io .TextIOWrapper (sys .stdout .buffer , encoding = 'utf-8' , errors = 'replace' )
2324 sys .stderr = io .TextIOWrapper (sys .stderr .buffer , encoding = 'utf-8' , errors = 'replace' )
2425
@@ -42,10 +43,7 @@ def test_decorator_module():
4243 """Test that the compat decorator module exists"""
4344 print ("\n 2. Testing decorator module..." , end = " " )
4445 try :
45- from megatron .core .utils import (
46- deprecated ,
47- internal_api ,
48- )
46+ from megatron .core .utils import deprecated , internal_api
4947
5048 print ("✅ Decorator module found" )
5149 print (" Available: @internal_api, @deprecated" )
@@ -88,10 +86,7 @@ def test_decorators_work():
8886 """Test that decorators can be applied"""
8987 print ("\n 5. Testing decorator functionality..." , end = " " )
9088 try :
91- from megatron .core .utils import (
92- internal_api ,
93- deprecated ,
94- )
89+ from megatron .core .utils import internal_api , deprecated
9590
9691 # Test internal_api decorator
9792 @internal_api
You can’t perform that action at this time.
0 commit comments