From edb9d350f32d1289b1d3fb5c5963aab23edb9b14 Mon Sep 17 00:00:00 2001 From: anmaster Date: Sun, 8 Feb 2009 15:34:26 +0000 Subject: [PATCH] /test/python.py: Avoid deprecated syntax. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11405 282e977c-c81d-0410-88c4-b93c2d0d6712 --- test/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/python.py b/test/python.py index 0a64b6eae..63d3c2390 100644 --- a/test/python.py +++ b/test/python.py @@ -131,7 +131,7 @@ def do_marker(): def do_memory(): whoami.Say('Value save test') dict = Crossfire.GetPrivateDictionary() - if dict.has_key('s'): + if 's' in dict: x = dict['s'] whoami.Say(' x was %d'%x) x = x + 1