mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
pylint: Enable and fix singleton-comparison warnings
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user