r47248 - why is comspec not a thing

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

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

Log:
why is comspec not a thing

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:09:05 2016
@@ -711,8 +711,8 @@
 
     @rtype: L{unicode}
     """
-    assert sys.platform == "win32"
-    assert type(s) in [bytes, unicode]
+    assert sys.platform == "win32", "only reasonable on Windows"
+    assert type(s) in [bytes, unicode], type(s) + " is not bytes or unicode"
 
     if isinstance(s, bytes):
         return s.decode('mbcs')