Skip to content

Commit

Permalink
Use correct Windows function name for getting file handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehpetsde committed Jul 26, 2019
1 parent f353b91 commit 536e1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def __init__(self, stream=None):

crtname = ctypes.util.find_msvcrt()
crtlib = ctypes.cdll.LoadLibrary(crtname)
self._outhdl = crtlib.get_osfhandle(self.stream.fileno())
self._outhdl = crtlib._get_osfhandle(self.stream.fileno())

def emit(self, record):
color = self._get_color(record.levelno)
Expand Down

0 comments on commit 536e1ab

Please sign in to comment.