X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=blobdiff_plain;f=CodingStyle.md;h=0a441e011bb7238db05817425d0ece10b966319e;hp=b69b5d61e2f85dbc59267024f26528bb0a3657e9;hb=HEAD;hpb=542cc9bb8b8817866afcd692a78fa591db5839dc diff --git a/CodingStyle.md b/CodingStyle.md index b69b5d61e..0a441e011 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -83,7 +83,7 @@ e.g.: /* An event that will wake the following call to poll_block(). */ struct poll_waiter { /* Set when the waiter is created. */ - struct list node; /* Element in global waiters list. */ + struct ovs_list node; /* Element in global waiters list. */ int fd; /* File descriptor. */ short int events; /* Events to wait for (POLLIN, POLLOUT). */ poll_fd_func *function; /* Callback function, if any, or null. */ @@ -569,3 +569,10 @@ for other compilers. You can, however, use C99 features or GCC extensions also supported by Clang in code that compiles only on GNU/Linux (such as lib/netdev-linux.c), because GCC is the system compiler there. + +## PYTHON + +When introducing new Python code, try to follow Python's +[PEP 8](http://www.python.org/dev/peps/pep-0008/) style. +Consider running the `pep8` or `flake8` tool against your +code to find issues.