summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/calendar.py2
-rw-r--r--Lib/test/test_calendar.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index b5472f3..76cf8de 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -312,7 +312,7 @@ class TextCalendar(Calendar):
"""
Print a month's calendar.
"""
- print(self.formatmonth(theyear, themonth, w, l), end=' ')
+ print(self.formatmonth(theyear, themonth, w, l), end='')
def formatmonth(self, theyear, themonth, w=0, l=0):
"""
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py
index 5de3ce8..accf251 100644
--- a/Lib/test/test_calendar.py
+++ b/Lib/test/test_calendar.py
@@ -409,8 +409,7 @@ class OutputTestCase(unittest.TestCase):
def test_prmonth(self):
with support.captured_stdout() as out:
calendar.TextCalendar().prmonth(2004, 1)
- output = out.getvalue().strip()
- self.assertEqual(output, result_2004_01_text.strip())
+ self.assertEqual(out.getvalue(), result_2004_01_text)
def test_pryear(self):
with support.captured_stdout() as out: