Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot committed Mar 19, 2022
2 parents 223bc47 + 2f095b8 commit 729d7c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/python/qmk/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ def normpath(path):


class FileType(argparse.FileType):
def __init__(self, encoding='UTF-8'):
def __init__(self, *args, **kwargs):
# Use UTF8 by default for stdin
return super().__init__(encoding=encoding)
if 'encoding' not in kwargs:
kwargs['encoding'] = 'UTF-8'
return super().__init__(*args, **kwargs)

def __call__(self, string):
"""normalize and check exists
Expand Down

0 comments on commit 729d7c2

Please sign in to comment.