diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index e4bb5a7839..d5ad4f3dc1 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py | |||
@@ -478,7 +478,7 @@ class GitApplyTree(PatchTree): | |||
478 | patchlines = [] | 478 | patchlines = [] |
479 | outfile = None | 479 | outfile = None |
480 | try: | 480 | try: |
481 | with open(srcfile, 'r', encoding=encoding) as f: | 481 | with open(srcfile, 'r', encoding=encoding, newline='') as f: |
482 | for line in f: | 482 | for line in f: |
483 | if line.startswith(GitApplyTree.patch_line_prefix): | 483 | if line.startswith(GitApplyTree.patch_line_prefix): |
484 | outfile = line.split()[-1].strip() | 484 | outfile = line.split()[-1].strip() |