From 69ca329f6015301e289fcbb3c021e430c1bdfa81 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 28 May 2020 21:40:27 +0800 Subject: Fix flake8 errors --- git/refs/symbolic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/refs') diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index aa449528..ee006cbc 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -466,7 +466,7 @@ class SymbolicReference(object): # write-binary is required, otherwise windows will # open the file in text mode and change LF to CRLF ! with open(pack_file_path, 'wb') as fd: - fd.writelines(l.encode(defenc) for l in new_lines) + fd.writelines(line.encode(defenc) for line in new_lines) except (OSError, IOError): pass # it didn't exist at all -- cgit v1.2.1