From 7914f867139c06fd751f6e37c9ed3e563388ed62 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 9 Dec 2012 10:55:46 +0100 Subject: Python: fix deprecated + "== None" instead of "is None" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic19c2ac5817cf5f6359bccda14795ec4f17aad7e Reviewed-on: https://gerrit.libreoffice.org/1275 Reviewed-by: Tomáš Chvátal Tested-by: Tomáš Chvátal --- scripting/source/pyprov/pythonscript.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripting') diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py index dcf05d4f9b7c..dbc5725ea19d 100755 --- a/scripting/source/pyprov/pythonscript.py +++ b/scripting/source/pyprov/pythonscript.py @@ -328,7 +328,7 @@ class ProviderContext: packageName = self.getPackageNameFromUrl( url ) transientPart = self.getTransientPartFromUrl( url ) log.isDebugLevel() and log.debug( "addPackageByUrl : " + packageName + ", " + transientPart + "("+url+")" + ", rootUrl="+self.rootUrl ) - if self.mapPackageName2Path.has_key( packageName ): + if packageName in self.mapPackageName2Path: package = self.mapPackageName2Path[ packageName ] package.pathes = package.pathes + (url, ) else: @@ -380,7 +380,7 @@ class ProviderContext: allFuncs = [] - if code == None: + if code is None: return allFuncs g_exportedScripts = [] -- cgit