From 6c737f4d8d197cb5a0df46f8cb7a55ab39f41413 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 21 Apr 2020 19:03:13 -0700 Subject: [PATCH] Remove unnecessary newline in compile() call --- Lib/modulefinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py index 361a6730c06746..aadcd23edbaaa7 100644 --- a/Lib/modulefinder.py +++ b/Lib/modulefinder.py @@ -339,7 +339,7 @@ def load_module(self, fqname, fp, pathname, file_info): self.msgout(2, "load_module ->", m) return m if type == _PY_SOURCE: - co = compile(fp.read()+b'\n', pathname, 'exec') + co = compile(fp.read(), pathname, 'exec') elif type == _PY_COMPILED: try: data = fp.read()