mirror of
https://github.com/google/brotli.git
synced 2024-11-24 12:30:15 +00:00
0e42caf359
Not all combinations are migrated to the initial configuration; corresponding TODOs added. Drive-by: additional combinations uncovered minor portability problems -> fixed Drive-by: remove no-longer used "script" files. Co-authored-by: Eugene Kliuchnikov <eustas@chromium.org>
17 lines
375 B
Python
17 lines
375 B
Python
# Step 01 - download RFC7932.
|
|
#
|
|
# RFC is the ultimate source for brotli format and constants, including
|
|
# static dictionary.
|
|
|
|
import urllib2
|
|
|
|
response = urllib2.urlopen("https://tools.ietf.org/rfc/rfc7932.txt")
|
|
|
|
text = response.read()
|
|
path = "rfc7932.txt"
|
|
|
|
with open(path, "w") as rfc:
|
|
rfc.write(text)
|
|
|
|
print("Downloaded and saved " + str(len(text)) + " bytes to " + path)
|