Fix a bogus end=' ' here.
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 6349913..11135eb 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -740,7 +740,7 @@
                     else: s = s + ' '
                     if lineno == self.curframe.f_lineno:
                         s = s + '->'
-                    print(s + '\t' + line, end=' ', file=self.stdout)
+                    print(s + '\t' + line, end='', file=self.stdout)
                     self.lineno = lineno
         except KeyboardInterrupt:
             pass