[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

extras-buildsys/common CommonErrors.py,1.4,1.5



Author: dcbw

Update of /cvs/fedora/extras-buildsys/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6974/common

Modified Files:
	CommonErrors.py 
Log Message:
Fix indent spacing


Index: CommonErrors.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/common/CommonErrors.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CommonErrors.py	20 Jun 2005 16:12:46 -0000	1.4
+++ CommonErrors.py	20 Jun 2005 16:18:32 -0000	1.5
@@ -26,20 +26,20 @@
     # This is a bit complicated by the fact that different versions of
     # M2Crypto & OpenSSL seem to return different error codes for the
     # same type of error
-     if e[0] == 104:     # Connection refused
-          return True
-     elif e[0] == 111:   # Connection reset by peer
-          return True
-     elif e[0] == 61:    # Connection refused
-          return True
-     elif e[0] == 54:    # Connection reset by peer
-          return True
-     elif e == "no certificate returned":
-          return True
-     elif e == "wrong version number":
-          return True
-     elif e == "unexpected eof":
-          return True
+    if e[0] == 104:     # Connection refused
+        return True
+    elif e[0] == 111:   # Connection reset by peer
+        return True
+    elif e[0] == 61:    # Connection refused
+        return True
+    elif e[0] == 54:    # Connection reset by peer
+        return True
+    elif e == "no certificate returned":
+        return True
+    elif e == "wrong version number":
+        return True
+    elif e == "unexpected eof":
+        return True
 
     return False
 
@@ -49,11 +49,11 @@
     Identify common network errors that mean we cannot connect to the server
     """
 
-     if e[0] == 111:     # Connection refused
-          return True
-     elif e[0] == 104:   # Connection reset by peer
-          return True
-     elif e[0] == 61:    # Connection refused
-          return True
+    if e[0] == 111:     # Connection refused
+        return True
+    elif e[0] == 104:   # Connection reset by peer
+        return True
+    elif e[0] == 61:    # Connection refused
+        return True
 
     return False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]