summaryrefslogtreecommitdiff
path: root/Lib/python
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2018-12-04 22:15:52 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2018-12-04 22:15:52 +0000
commit009415e43b1e4aa11dcf0725adcd00067ad6b05e (patch)
treeb627ee6a63b18723a162f7692d4bc7998420d459 /Lib/python
parent9fe2b05faa349463447284186947a9398f0ad557 (diff)
downloadswig-009415e43b1e4aa11dcf0725adcd00067ad6b05e.tar.gz
Cosmetic changes in SWIG_globals
Make local variable name standards compliant
Diffstat (limited to 'Lib/python')
-rw-r--r--Lib/python/pyinit.swg7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg
index d8f3bf444..2ca90188d 100644
--- a/Lib/python/pyinit.swg
+++ b/Lib/python/pyinit.swg
@@ -226,9 +226,10 @@ SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void
SWIGINTERN PyObject *
SWIG_globals(void) {
- static PyObject *_SWIG_globals = 0;
- if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
- return _SWIG_globals;
+ static PyObject *globals = 0;
+ if (!globals)
+ globals = SWIG_newvarlink();
+ return globals;
}
/* -----------------------------------------------------------------------------