diff --git a/pydu/cmd.py b/pydu/cmd.py index 1409cda..5c6e2da 100644 --- a/pydu/cmd.py +++ b/pydu/cmd.py @@ -141,7 +141,7 @@ if WINDOWS: windll.kernel32.SetConsoleOutputCP(code) def __enter__(self): - pass + return self def __exit__(self, exc_type, exc_val, exc_tb): windll.kernel32.SetConsoleOutputCP(self.origin_code)