Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wmllint: Leave gzipped binary files alone, they're not safe for consu…
…mption Fixes wmllint crashing like this upon encountering a gzip tarball in an add-on: Traceback (most recent call last): File "/home/shadowm/bin/wmllint-1.14", line 3188, in <module> for fn in allcfgfiles(directory): File "/home/shadowm/bin/wmllint-1.14", line 2944, in allcfgfiles if interesting(os.path.join(root, name)): File "/home/shadowm/bin/wmllint-1.14", line 2927, in interesting return fn.endswith(".cfg") or is_map(fn) or issave(fn) File "/home/shadowm/src/wesnoth-1.14/data/tools/wesnoth/wmltools3.py", line 270, in issave return firstline.startswith("label=") TypeError: startswith first arg must be bytes or a tuple of bytes, not str [ci skip] (cherry-picked from commit c92e167)
- Loading branch information