diff options
author | Sean Reifscheider <jafo@tummy.com> | 2010-04-23 08:38:24 +0000 |
---|---|---|
committer | Sean Reifscheider <jafo@tummy.com> | 2010-04-23 08:38:24 +0000 |
commit | 711657639c2c96c327c6dd79f425e41f72d2fe98 (patch) | |
tree | 2a499cdaf5953cf65ae6029a48057cc8eecd78e4 | |
parent | 1e0290c858b0c96734c6f980a716eea6eef520fb (diff) | |
download | cpython-711657639c2c96c327c6dd79f425e41f72d2fe98.tar.gz |
Small comment documentation change to clarify "ident" selection.
-rw-r--r-- | Modules/syslogmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index 30d373127b..94328bacd8 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -119,7 +119,7 @@ syslog_openlog(PyObject * self, PyObject * args, PyObject *kwds) if (new_S_ident_o) { Py_INCREF(new_S_ident_o); } - /* get either sys.argv[0] or use "python" otherwise */ + /* get sys.argv[0] or NULL if we can't for some reason */ if (!new_S_ident_o) { new_S_ident_o = syslog_get_argv(); } @@ -129,6 +129,7 @@ syslog_openlog(PyObject * self, PyObject * args, PyObject *kwds) /* At this point, S_ident_o should be INCREF()ed. openlog(3) does not * make a copy, and syslog(3) later uses it. We can't garbagecollect it + * If NULL, just let openlog figure it out (probably using C argv[0]). */ openlog(S_ident_o ? PyString_AsString(S_ident_o) : NULL, logopt, facility); |