Show More
@@ -254,8 +254,10 b' try:' | |||
|
254 | 254 | 'inverse': win32c.COMMON_LVB_REVERSE_VIDEO, # double-byte charsets only |
|
255 | 255 | } |
|
256 | 256 | |
|
257 | try: | |
|
257 | 258 | stdout = win32c.GetStdHandle(win32c.STD_OUTPUT_HANDLE) |
|
258 | try: | |
|
259 | if stdout is None: | |
|
260 | raise ImportError() | |
|
259 | 261 | origattr = stdout.GetConsoleScreenBufferInfo()['Attributes'] |
|
260 | 262 | except pywintypes.error: |
|
261 | 263 | # stdout may be defined but not support |
General Comments 0
You need to be logged in to leave comments.
Login now