diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-09 10:55:46 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-12-10 09:25:30 +0100 |
commit | f4cae670e314f5e869d7d9ac15ea51c3c9cf66fa (patch) | |
tree | a8e8211dce959043966139a52738faaa460ed530 /scripting | |
parent | 23b9b17a0dadc87540e4274397d4be9ff48bbc78 (diff) |
Python: fix deprecated + "== None" instead of "is None"
Change-Id: Ic19c2ac5817cf5f6359bccda14795ec4f17aad7e
Reviewed-on: https://gerrit.libreoffice.org/1275
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
Diffstat (limited to 'scripting')
-rwxr-xr-x | scripting/source/pyprov/pythonscript.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = [] |