summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-10-05 23:06:40 +0530
committerFlorian Dold <florian.dold@gmail.com>2019-10-05 23:07:13 +0530
commit71d72aec6e35709099bdd85f2eb69c37cc0c282d (patch)
treee035da151f9352f5e175130da5acab1fc449ecd6
parent266a52be97c3d15b1f250b06dd59ef048d78f1ee (diff)
downloadbuild-common-71d72aec6e35709099bdd85f2eb69c37cc0c282d.tar.gz
build-common-71d72aec6e35709099bdd85f2eb69c37cc0c282d.tar.bz2
build-common-71d72aec6e35709099bdd85f2eb69c37cc0c282d.zip
fix conditions
-rw-r--r--configure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 0f12690..16bb8e7 100644
--- a/configure.py
+++ b/configure.py
@@ -61,7 +61,7 @@ def _tool_yarn():
p2 = Popen(['grep', 'No such file or directory'], stdin=p1.stdout, stdout=subprocess.PIPE)
p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits
output = p2.communicate()[0]
- if output is b'':
+ if output is not b'':
if _existence('cmdtest'):
print('WARNING: cmdtest is installed, this can lead\nto know issues with yarn.')
sys.exit('ERROR: wrong yarn binary installed, please remove the\nconflicting binary before continuing.')
@@ -156,7 +156,7 @@ def main():
print(_tool_node())
posixlist = _tool_posix()
for x in range(len(posixlist)):
- if x is not '':
+ if x != '':
print(posixlist[x] + "\n")