[pywin32-checkins] /hgrepo/p/py/pywin32/pywin32: fix encoding and comment from last...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2011-04-24 03:33:07
|
changeset 816b080c336b in /hgrepo/p/py/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgrepo/p/py/pywin32/pywin32?cmd=changeset;node=816b080c336b summary: fix encoding and comment from last checkin diffstat: com/win32com/client/build.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diffs (19 lines): diff -r 6859167bf2ab -r 816b080c336b com/win32com/client/build.py --- a/com/win32com/client/build.py Sat Apr 23 23:19:08 2011 +1000 +++ b/com/win32com/client/build.py Sun Apr 24 13:31:45 2011 +1000 @@ -25,11 +25,11 @@ import winerror import datetime -# A string ending with a quote can not be safely triple-quoted. (Indeed, we -# consider all things suspect (eg, \n chars, \t chars etc) - so just use -# repr! +# It isn't really clear what the quoting rules are in a C/IDL string and +# literals like a quote char and backslashes makes life a little painful to +# always render the string perfectly - so just punt and fall-back to a repr() def _makeDocString(s, encoding="mbcs"): - return repr(s.encode("mbcs")) + return repr(s.encode(encoding)) error = "PythonCOM.Client.Build error" class NotSupportedException(Exception): pass # Raised when we cant support a param type. |