[Python-checkins] cpython: Fix indentation of switch cases.

guido.van.rossum python-checkins at python.org
Sat Dec 7 02:46:52 CET 2013


http://hg.python.org/cpython/rev/e63a9695a0d4
changeset: 87806:e63a9695a0d4
user: Guido van Rossum <guido at python.org>
date: Fri Dec 06 17:46:22 2013 -0800
summary:
 Fix indentation of switch cases.
files:
 Modules/selectmodule.c | 22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1317,16 +1317,16 @@
 return NULL;
 }
 
- switch(op) {
- case EPOLL_CTL_ADD:
- case EPOLL_CTL_MOD:
+ switch (op) {
+ case EPOLL_CTL_ADD:
+ case EPOLL_CTL_MOD:
 ev.events = events;
 ev.data.fd = fd;
 Py_BEGIN_ALLOW_THREADS
 result = epoll_ctl(epfd, op, fd, &ev);
 Py_END_ALLOW_THREADS
 break;
- case EPOLL_CTL_DEL:
+ case EPOLL_CTL_DEL:
 /* In kernel versions before 2.6.9, the EPOLL_CTL_DEL
 * operation required a non-NULL pointer in event, even
 * though this argument is ignored. */
@@ -1339,7 +1339,7 @@
 }
 Py_END_ALLOW_THREADS
 break;
- default:
+ default:
 result = -1;
 errno = EINVAL;
 }
@@ -1795,22 +1795,22 @@
 }
 
 switch (op) {
- case Py_EQ:
+ case Py_EQ:
 result = (result == 0);
 break;
- case Py_NE:
+ case Py_NE:
 result = (result != 0);
 break;
- case Py_LE:
+ case Py_LE:
 result = (result <= 0);
 break;
- case Py_GE:
+ case Py_GE:
 result = (result >= 0);
 break;
- case Py_LT:
+ case Py_LT:
 result = (result < 0);
 break;
- case Py_GT:
+ case Py_GT:
 result = (result > 0);
 break;
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /