1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

hide dropping message in json package file (#6070)

This commit is contained in:
david gauchard 2019-05-11 13:29:23 +02:00 committed by GitHub
parent 024b1c15ca
commit ac02aff575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,9 +19,7 @@ def drop_version(todrop, obj):
out = []; out = [];
for o in obj: for o in obj:
version = o['version'].encode('ascii') version = o['version'].encode('ascii')
if version == todrop: if version != todrop:
print("Dropping version {0}".format(todrop))
else:
out.append(o) out.append(o)
return out return out