/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
master
anmaster 2009-02-08 15:34:26 +00:00
parent 39ac202b17
commit edb9d350f3
1 changed files with 1 additions and 1 deletions

View File

@ -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