return self on cmd.chcp.__enter__

This commit is contained in:
Prodesire 2017-12-23 11:16:43 +08:00
parent 4a3714338d
commit fe87145aa8
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ if WINDOWS:
windll.kernel32.SetConsoleOutputCP(code) windll.kernel32.SetConsoleOutputCP(code)
def __enter__(self): def __enter__(self):
pass return self
def __exit__(self, exc_type, exc_val, exc_tb): def __exit__(self, exc_type, exc_val, exc_tb):
windll.kernel32.SetConsoleOutputCP(self.origin_code) windll.kernel32.SetConsoleOutputCP(self.origin_code)