more fixes for python 1.5 +gcc2.96

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-06-17 19:12:21 +00:00
commit 7b1b141ee4
8 changed files with 54 additions and 37 deletions

View file

@ -390,7 +390,8 @@ public:
// Try loading weakref.proxy, which is only available in Python 2.1 and higher
Printv(f_shadow,
"try:\n",
tab4, "from weakref import proxy as weakref_proxy\n",
tab4, "import weakref\n",
tab4, "weakref_proxy = weakref.proxy\n",
"except:\n",
tab4, "weakref_proxy = lambda x: x\n",
"\n\n",