From 2474310a5eb5d9856240df7dfbdf177d4858e420 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 11 Jan 2006 23:13:23 +0000 Subject: [PATCH] change runtime examples to run with old python versions git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8378 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/director_detect_runme.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SWIG/Examples/test-suite/python/director_detect_runme.py b/SWIG/Examples/test-suite/python/director_detect_runme.py index e298c99a6..a90cfe8b4 100644 --- a/SWIG/Examples/test-suite/python/director_detect_runme.py +++ b/SWIG/Examples/test-suite/python/director_detect_runme.py @@ -6,15 +6,15 @@ class MyBar(director_detect.Bar): self.val = val def get_value(self): - self.val += 1 + self.val = self.val + 1 return self.val def get_class(self): - self.val += 1 + self.val = self.val + 1 return director_detect.A() def just_do_it(self): - self.val += 1 + self.val = self.val + 1 def clone(self): return MyBar(self.val)