summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--en/pythonpath/lightproof_handler_en.py4
-rw-r--r--en/pythonpath/lightproof_impl_en.py6
-rw-r--r--hu_HU/pythonpath/lightproof_handler_hu_HU.py4
-rw-r--r--hu_HU/pythonpath/lightproof_impl_hu_HU.py6
-rw-r--r--pt_BR/pythonpath/lightproof_handler_pt_BR.py4
-rw-r--r--ru_RU/pythonpath/lightproof_handler_ru_RU.py4
-rw-r--r--ru_RU/pythonpath/lightproof_impl_ru_RU.py6
7 files changed, 17 insertions, 17 deletions
diff --git a/en/pythonpath/lightproof_handler_en.py b/en/pythonpath/lightproof_handler_en.py
index 190abd0..8d2150f 100644
--- a/en/pythonpath/lightproof_handler_en.py
+++ b/en/pythonpath/lightproof_handler_en.py
@@ -69,7 +69,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def loadData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_en.lopts[sWindowName]:
@@ -85,7 +85,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def saveData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_en.lopts[sWindowName]:
diff --git a/en/pythonpath/lightproof_impl_en.py b/en/pythonpath/lightproof_impl_en.py
index 9f4729b..e9c7588 100644
--- a/en/pythonpath/lightproof_impl_en.py
+++ b/en/pythonpath/lightproof_impl_en.py
@@ -35,7 +35,7 @@ def option(lang, opt):
# filtering affix fields (ds, is, ts etc.)
def onlymorph(st):
- if st != None:
+ if st is not None:
st = re.sub(r"^.*(st:|po:)", r"\\1", st) # keep last word part
st = re.sub(r"\\b(?=[dit][sp]:)","@", st) # and its affixes
st = re.sub(r"(?<!@)\\b\w\w:\w+","", st).replace('@','').strip()
@@ -138,9 +138,9 @@ def wordmin(s, n):
def calc(funcname, par):
global calcfunc
global SMGR
- if calcfunc == None:
+ if calcfunc is None:
calcfunc = SMGR.createInstance( "com.sun.star.sheet.FunctionAccess")
- if calcfunc == None:
+ if calcfunc is None:
return None
return calcfunc.callFunction(funcname, par)
diff --git a/hu_HU/pythonpath/lightproof_handler_hu_HU.py b/hu_HU/pythonpath/lightproof_handler_hu_HU.py
index cc25e40..9a9e28e 100644
--- a/hu_HU/pythonpath/lightproof_handler_hu_HU.py
+++ b/hu_HU/pythonpath/lightproof_handler_hu_HU.py
@@ -69,7 +69,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def loadData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_hu_HU.lopts[sWindowName]:
@@ -85,7 +85,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def saveData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_hu_HU.lopts[sWindowName]:
diff --git a/hu_HU/pythonpath/lightproof_impl_hu_HU.py b/hu_HU/pythonpath/lightproof_impl_hu_HU.py
index 144b2b5..361e7a1 100644
--- a/hu_HU/pythonpath/lightproof_impl_hu_HU.py
+++ b/hu_HU/pythonpath/lightproof_impl_hu_HU.py
@@ -36,7 +36,7 @@ def option(lang, opt):
# filtering affix fields (ds, is, ts etc.)
def onlymorph(st):
- if st != None:
+ if st is not None:
st = re.sub(r"^.*(st:|po:)", r"\\1", st) # keep last word part
st = re.sub(r"\\b(?=[dit][sp]:)","@", st) # and its affixes
st = re.sub(r"(?<!@)\\b\w\w:\w+","", st).replace('@','').strip()
@@ -141,9 +141,9 @@ def wordmin(s, n):
def calc(funcname, par):
global calcfunc
global SMGR
- if calcfunc == None:
+ if calcfunc is None:
calcfunc = SMGR.createInstance( "com.sun.star.sheet.FunctionAccess")
- if calcfunc == None:
+ if calcfunc is None:
return None
return calcfunc.callFunction(funcname, par)
diff --git a/pt_BR/pythonpath/lightproof_handler_pt_BR.py b/pt_BR/pythonpath/lightproof_handler_pt_BR.py
index e80e320..9338da6 100644
--- a/pt_BR/pythonpath/lightproof_handler_pt_BR.py
+++ b/pt_BR/pythonpath/lightproof_handler_pt_BR.py
@@ -69,7 +69,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def loadData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_pt_BR.lopts[sWindowName]:
@@ -85,7 +85,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def saveData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_pt_BR.lopts[sWindowName]:
diff --git a/ru_RU/pythonpath/lightproof_handler_ru_RU.py b/ru_RU/pythonpath/lightproof_handler_ru_RU.py
index 7f31765..e6dbc72 100644
--- a/ru_RU/pythonpath/lightproof_handler_ru_RU.py
+++ b/ru_RU/pythonpath/lightproof_handler_ru_RU.py
@@ -69,7 +69,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def loadData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_ru_RU.lopts[sWindowName]:
@@ -85,7 +85,7 @@ class LightproofOptionsEventHandler( unohelper.Base, XServiceInfo, XContainerWin
def saveData(self, aWindow):
sWindowName = self.getWindowName(aWindow)
- if (sWindowName == None):
+ if (sWindowName is None):
return
child = self.getChild(sWindowName)
for i in lightproof_opts_ru_RU.lopts[sWindowName]:
diff --git a/ru_RU/pythonpath/lightproof_impl_ru_RU.py b/ru_RU/pythonpath/lightproof_impl_ru_RU.py
index ffbf054..808617c 100644
--- a/ru_RU/pythonpath/lightproof_impl_ru_RU.py
+++ b/ru_RU/pythonpath/lightproof_impl_ru_RU.py
@@ -35,7 +35,7 @@ def option(lang, opt):
# filtering affix fields (ds, is, ts etc.)
def onlymorph(st):
- if st != None:
+ if st is not None:
st = re.sub(r"^.*(st:|po:)", r"\\1", st) # keep last word part
st = re.sub(r"\\b(?=[dit][sp]:)","@", st) # and its affixes
st = re.sub(r"(?<!@)\\b\w\w:\w+","", st).replace('@','').strip()
@@ -140,9 +140,9 @@ def wordmin(s, n):
def calc(funcname, par):
global calcfunc
global SMGR
- if calcfunc == None:
+ if calcfunc is None:
calcfunc = SMGR.createInstance( "com.sun.star.sheet.FunctionAccess")
- if calcfunc == None:
+ if calcfunc is None:
return None
return calcfunc.callFunction(funcname, par)