diff options
author | lupoDharkael <izhe@hotmail.es> | 2018-10-27 01:18:15 +0200 |
---|---|---|
committer | lupoDharkael <izhe@hotmail.es> | 2018-10-27 01:18:15 +0200 |
commit | edcca5f7ad2ba92b3e04fb153f7db55c08593469 (patch) | |
tree | 8c29e3f3a2f793e3de3ae77f20c3a2607bf5e0e3 /gles_builders.py | |
parent | 970b58148f579f741934f64af437d01b985df15d (diff) | |
download | redot-engine-edcca5f7ad2ba92b3e04fb153f7db55c08593469.tar.gz |
Dont use equality operators with None singleton in python files
Diffstat (limited to 'gles_builders.py')
-rw-r--r-- | gles_builders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gles_builders.py b/gles_builders.py index 1e63a53f1a..f9fd6d3fa2 100644 --- a/gles_builders.py +++ b/gles_builders.py @@ -59,11 +59,11 @@ def include_file_in_legacygl_header(filename, header_data, depth): included_file = os.path.relpath(os.path.dirname(filename) + "/" + includeline) if not included_file in header_data.vertex_included_files and header_data.reading == "vertex": header_data.vertex_included_files += [included_file] - if include_file_in_legacygl_header(included_file, header_data, depth + 1) == None: + if include_file_in_legacygl_header(included_file, header_data, depth + 1) is None: print("Error in file '" + filename + "': #include " + includeline + "could not be found!") elif not included_file in header_data.fragment_included_files and header_data.reading == "fragment": header_data.fragment_included_files += [included_file] - if include_file_in_legacygl_header(included_file, header_data, depth + 1) == None: + if include_file_in_legacygl_header(included_file, header_data, depth + 1) is None: print("Error in file '" + filename + "': #include " + includeline + "could not be found!") line = fs.readline() |