pylint: Enable and fix singleton-comparison warnings

This commit is contained in:
Kamil Śliwak
2021-12-21 15:30:11 +01:00
parent 784ae91b41
commit 5b10ff1216
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ copyright = '2016-2021, Ethereum'
with open('../CMakeLists.txt', 'r', encoding='utf8') as f:
version = re.search('PROJECT_VERSION "([^"]+)"', f.read()).group(1)
# The full version, including alpha/beta/rc tags.
if os.path.isfile('../prerelease.txt') != True or os.path.getsize('../prerelease.txt') == 0:
if not os.path.isfile('../prerelease.txt') or os.path.getsize('../prerelease.txt') == 0:
release = version
else:
# This is a prerelease version