[Python-checkins] r83254 - in python/branches/import_unicode: Modules/main.c Objects/fileobject.c Parser/tokenizer.c

victor.stinner python-checkins at python.org
Fri Jul 30 05:51:48 CEST 2010


Author: victor.stinner
Date: Fri Jul 30 05:51:48 2010
New Revision: 83254

Log:
Coding style: newline between } and else

Modified:
   python/branches/import_unicode/Modules/main.c
   python/branches/import_unicode/Objects/fileobject.c
   python/branches/import_unicode/Parser/tokenizer.c

Modified: python/branches/import_unicode/Modules/main.c
==============================================================================
--- python/branches/import_unicode/Modules/main.c	(original)
+++ python/branches/import_unicode/Modules/main.c	Fri Jul 30 05:51:48 2010
@@ -254,7 +254,7 @@
     }
 }
 
-static int 
+static int
 run_command(wchar_t *command, PyCompilerFlags *cf)
 {
     int sts;
@@ -749,7 +749,8 @@
             *bytes++ = c - 0xdc00;
             size--;
             continue;
-        } else {
+        }
+        else {
             wchar_t buf[2];
             buf[0] = c;
             buf[1] = 0;

Modified: python/branches/import_unicode/Objects/fileobject.c
==============================================================================
--- python/branches/import_unicode/Objects/fileobject.c	(original)
+++ python/branches/import_unicode/Objects/fileobject.c	Fri Jul 30 05:51:48 2010
@@ -57,7 +57,8 @@
         nameobj = PyUnicode_DecodeFSDefault(name);
         if (nameobj == NULL)
             PyErr_Clear();
-    } else
+    }
+    else
         nameobj = NULL;
     file = _PyFile_FromFdUnicode(fd, nameobj, mode, buffering,
                                  encoding, errors, newline, closefd);

Modified: python/branches/import_unicode/Parser/tokenizer.c
==============================================================================
--- python/branches/import_unicode/Parser/tokenizer.c	(original)
+++ python/branches/import_unicode/Parser/tokenizer.c	Fri Jul 30 05:51:48 2010
@@ -474,7 +474,8 @@
         stream = PyObject_CallMethod(io, "open", "Osis",
                                      filename, "r", -1, enc);
         Py_DECREF(filename);
-    } else
+    }
+    else
         stream = PyObject_CallMethod(io, "open", "isisOOO",
                         fileno(tok->fp), "r", -1, enc, Py_None, Py_None, Py_False);
     if (stream == NULL)


More information about the Python-checkins mailing list