Fix python 3 deprecation warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36267 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-12 15:42:50 +00:00
parent 8b24e160b0
commit 05df2a7cc6

View File

@ -1777,7 +1777,7 @@ def revert_module_names(document):
return
newmodlist = []
for mod in modlist:
if modulemap.has_key(mod):
if mod in modulemap:
newmodlist.append(modulemap[mod])
else:
document.warning("Can't find module %s in the module map!" % mod)