Skip to content

Commit

Permalink
Merge pull request tartley#1 from tartley/master
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
Slayther committed Oct 18, 2016
2 parents 053989a + ec81728 commit 1fc54e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. image:: https://pypip.in/version/colorama/badge.svg
.. image:: https://img.shields.io/pypi/v/colorama.svg
:target: https://pypi.python.org/pypi/colorama/
:alt: Latest Version

Expand Down
3 changes: 3 additions & 0 deletions colorama/ansitowin32.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def __getattr__(self, name):
def write(self, text):
self.__convertor.write(text)

def fileno():
raise OSError()


class AnsiToWin32(object):
'''
Expand Down
4 changes: 2 additions & 2 deletions colorama/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def __str__(self):
]
_FillConsoleOutputAttribute.restype = wintypes.BOOL

_SetConsoleTitleW = windll.kernel32.SetConsoleTitleA
_SetConsoleTitleW = windll.kernel32.SetConsoleTitleW
_SetConsoleTitleW.argtypes = [
wintypes.LPCSTR
wintypes.LPCWSTR
]
_SetConsoleTitleW.restype = wintypes.BOOL

Expand Down

0 comments on commit 1fc54e9

Please sign in to comment.