mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 16:36:58 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
729d7c2b2e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user