r47249 - windows i haet u

hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Thu, 14 Apr 2016 22:17:02 -0600 (MDT)
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: hawkowl
Date: Thu Apr 14 22:16:58 2016
New Revision: 47249

Modified:
   branches/moar-windows-8025-7/twisted/python/compat.py

Log:
windows i haet u

Modified: branches/moar-windows-8025-7/twisted/python/compat.py
==============================================================================
--- branches/moar-windows-8025-7/twisted/python/compat.py	(original)
+++ branches/moar-windows-8025-7/twisted/python/compat.py	Thu Apr 14 22:16:58 2016
@@ -704,7 +704,7 @@
 
 def _maybeMBCS(s):
     """
-    Convert C{s} to a L{unicode} string, if required.
+    Convert the string C{s} to a L{unicode} string, if required.
 
     @param s: The string to convert.
     @type s: L{bytes} or L{unicode}
@@ -712,7 +712,7 @@
     @rtype: L{unicode}
     """
     assert sys.platform == "win32", "only reasonable on Windows"
-    assert type(s) in [bytes, unicode], type(s) + " is not bytes or unicode"
+    assert type(s) in [bytes, unicode], str(type(s)) + " is not a string"
 
     if isinstance(s, bytes):
         return s.decode('mbcs')