[Python-checkins] r80845 - python/trunk/Modules/posixmodule.c

victor.stinner python-checkins at python.org
Thu May 6 02:03:45 CEST 2010


Author: victor.stinner
Date: Thu May  6 02:03:44 2010
New Revision: 80845

Log:
Untabify Modules/posixmodule.c (2)

Fix some more functions by hand


Modified:
   python/trunk/Modules/posixmodule.c

Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c	(original)
+++ python/trunk/Modules/posixmodule.c	Thu May  6 02:03:44 2010
@@ -612,10 +612,10 @@
     msgbuf[msglen] = '\0'; /* OS/2 Doesn't Guarantee a Terminator */
 
     if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
-    char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
+        char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
 
-    while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
-        *lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
+        while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
+            *lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
     }
 
     /* Add Optional Reason Text */
@@ -8181,14 +8181,14 @@
     int name;
 
     if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
-    int value;
+        int value;
 
-    errno = 0;
-    value = sysconf(name);
-    if (value == -1 && errno != 0)
-        posix_error();
-    else
-        result = PyInt_FromLong(value);
+        errno = 0;
+        value = sysconf(name);
+        if (value == -1 && errno != 0)
+            posix_error();
+        else
+            result = PyInt_FromLong(value);
     }
     return result;
 }


More information about the Python-checkins mailing list