Ticket #5364: winerror.patch

File winerror.patch, 485 bytes (added by Antoine Pitrou, 10 years ago)
  • twisted/python/win32.py

    diff --git a/twisted/python/win32.py b/twisted/python/win32.py
    a b class _ErrorFormatter(object): 
    158158        @rtype: C{str}
    159159        """
    160160        if self.winError is not None:
    161             return self.winError(errorcode)[1]
     161            return self.winError(errorcode).strerror
    162162        if self.formatMessage is not None:
    163163            return self.formatMessage(errorcode)
    164164        if self.errorTab is not None: