From: Richard Heck Date: Fri, 12 Nov 2010 15:42:50 +0000 (+0000) Subject: Fix python 3 deprecation warning. X-Git-Tag: 2.0.0~1879 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=05df2a7cc607454c2c4ffe165dbb2316446a4706;p=features.git Fix python 3 deprecation warning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36267 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index e1ed5e670f..38728c6e07 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -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)