sk- / git-lint

improving source code one step at a time
Apache License 2.0
236 stars 78 forks source link

Fixes setup due to encoding issues in some systems. #108

Closed sk- closed 6 years ago

sk- commented 6 years ago

By default open will use a decoder that's platform dependent. See https://docs.python.org/3.6/library/functions.html#open

Instead we need to explicitly provide the file's encoding. For which we need to use the function from io, so that it can also be used in python 2.7.

Fixes #107.