You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/03/30 22:01:12 UTC

svn commit: r1307589 - /subversion/trunk/tools/dev/which-error.py

Author: danielsh
Date: Fri Mar 30 20:01:11 2012
New Revision: 1307589

URL: http://svn.apache.org/viewvc?rev=1307589&view=rev
Log:
Support errno in which-error.py.

* tools/dist/which-error.py
  (errno): Import.
  (get_errors): Add errno numbers/names to the dict.

Modified:
    subversion/trunk/tools/dev/which-error.py

Modified: subversion/trunk/tools/dev/which-error.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/which-error.py?rev=1307589&r1=1307588&r2=1307589&view=diff
==============================================================================
--- subversion/trunk/tools/dev/which-error.py (original)
+++ subversion/trunk/tools/dev/which-error.py Fri Mar 30 20:01:11 2012
@@ -29,6 +29,7 @@
 # $LastChangedRevision$
 #
 
+import errno
 import sys
 import os.path
 import re
@@ -68,6 +69,7 @@ codes.  This can be done in variety of w
 
 def get_errors():
   errs = {}
+  errs.update(errno.errorcode)
   for key in vars(core):
     if key.find('SVN_ERR_') == 0:
       try: