summaryrefslogtreecommitdiff
path: root/librelogo
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2024-07-12 15:58:23 +0200
committerJulien Nabet <serval2412@yahoo.fr>2024-07-13 09:13:54 +0200
commit1f8a9bfcdb83446b49e74dba241f9924d3b74748 (patch)
tree5a4eeb17ab6d6b622989d2de02f2ada15a73b206 /librelogo
parent4c8f88bef948b18f3d810c29a7f83496367758a9 (diff)
Python: use is None/is not None instead of == None/!= None
Change-Id: I1c34181897506ad29a063865d752cb85ab76dbc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170408 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'librelogo')
-rw-r--r--librelogo/source/LibreLogo/LibreLogo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 2f29e15732d2..44daaeb00767 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -610,7 +610,7 @@ class LogoProgram(threading.Thread):
# to check LibreLogo program termination (in that case, return value is False)
def __is_alive__():
- return __thread__ != None
+ return __thread__ is not None
def __encodestring__(m):
__strings__.append(re.sub("(\\[^\\]|\\\\(?=[‘’“”»」』]))", "", m.group(2)))
@@ -1453,7 +1453,7 @@ def text(shape, orig_st):
c.CharFontName = _.fontfamily
# has HTML-like formatting
- if formatting != None:
+ if formatting is not None:
_.fixSVG = True
prev_format = 0
prev_extra_data = extra_data[0]
@@ -1603,7 +1603,7 @@ def fillstyle(s):
def __splitcolor__(c, shape = None, angle = None):
if shape and (type(c) == tuple or type(_.t10y) == list):
- angle = heading() if angle == None else -angle / 100 + 360
+ angle = heading() if angle is None else -angle / 100 + 360
if type(c) == tuple:
shape.FillStyle = __FillStyle_GRADIENT__
# gradient color: [color1, color2, style, angle(must be positive for I/O), border, x_percent, y_percent, color1_intensity_percent, color2_intensity_percent]