[Python-checkins] cpython: Don't export internal symbols ("make smelly")

antoine.pitrou python-checkins at python.org
Sat Oct 12 22:41:23 CEST 2013


http://hg.python.org/cpython/rev/eeec58c57964
changeset:   86257:eeec58c57964
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Oct 12 22:41:17 2013 +0200
summary:
  Don't export internal symbols ("make smelly")

files:
  Python/errors.c    |  2 +-
  Python/fileutils.c |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Python/errors.c b/Python/errors.c
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -1014,7 +1014,7 @@
    XXX The functionality of this function is quite similar to the
    functionality in tb_displayline() in traceback.c. */
 
-PyObject *
+static PyObject *
 err_programtext(FILE *fp, int lineno)
 {
     int i;
diff --git a/Python/fileutils.c b/Python/fileutils.c
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -566,7 +566,7 @@
 
 #endif
 
-int
+static int
 get_inheritable(int fd, int raise)
 {
 #ifdef MS_WINDOWS

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list