Skip to content

Commit

Permalink
Patched patchwork/common/utils/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
patched.codes[bot] committed Jan 8, 2025
1 parent 81e23d8 commit 1c810b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patchwork/common/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def defered_temp_file(
return tempfile_fp


def open_with_chardet(file, mode="r", buffering=-1, errors=None, newline=None, closefd=True, opener=None):
def open_with_chardet(file, mode="r", buffering=-1, errors=None, newline="", closefd=True, opener=None):
detector = UniversalDetector()
with open(
file=file, mode="rb", buffering=buffering, errors=errors, newline=newline, closefd=closefd, opener=opener
Expand Down

0 comments on commit 1c810b5

Please sign in to comment.