summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 21:12:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-07 21:12:36 (GMT)
commitd39206a78ce7279f26d23b6e721e4787a8ebf447 (patch)
tree2bfd1bc529d0c74ea25fbbdeade15be1f83a3980
parentb6c345878afcd7f9a78b4c1b15940d76875db0d3 (diff)
downloadcpython-d39206a78ce7279f26d23b6e721e4787a8ebf447.zip
cpython-d39206a78ce7279f26d23b6e721e4787a8ebf447.tar.gz
cpython-d39206a78ce7279f26d23b6e721e4787a8ebf447.tar.bz2
use c++ style comments
-rw-r--r--Objects/namespaceobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/namespaceobject.c b/Objects/namespaceobject.c
index 3d27a95..0bb3063 100644
--- a/Objects/namespaceobject.c
+++ b/Objects/namespaceobject.c
@@ -1,4 +1,4 @@
-/* namespace object implementation */
+// namespace object implementation
#include "Python.h"
#include "structmember.h"
@@ -16,7 +16,7 @@ static PyMemberDef namespace_members[] = {
};
-/* Methods */
+// Methods
static PyObject *
namespace_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
@@ -40,7 +40,7 @@ namespace_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static int
namespace_init(_PyNamespaceObject *ns, PyObject *args, PyObject *kwds)
{
- /* ignore args if it's NULL or empty */
+ // ignore args if it's NULL or empty
if (args != NULL) {
Py_ssize_t argcount = PyObject_Size(args);
if (argcount < 0)
@@ -191,7 +191,7 @@ namespace_reduce(_PyNamespaceObject *ns)
static PyMethodDef namespace_methods[] = {
{"__reduce__", (PyCFunction)namespace_reduce, METH_NOARGS,
namespace_reduce__doc__},
- {NULL, NULL} /* sentinel */
+ {NULL, NULL} // sentinel
};