summaryrefslogtreecommitdiffstats
path: root/Lib/calendar.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-14 23:36:06 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-14 23:36:06 (GMT)
commit88869f9787cd4ceb2298e4b13980beb057687824 (patch)
tree653976731f926b5e098bf57b4858a9516af220b5 /Lib/calendar.py
parent752d3f557e95cda98a8b50808cfe2f2d0b8767eb (diff)
downloadcpython-88869f9787cd4ceb2298e4b13980beb057687824.zip
cpython-88869f9787cd4ceb2298e4b13980beb057687824.tar.gz
cpython-88869f9787cd4ceb2298e4b13980beb057687824.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/calendar.py')
-rw-r--r--Lib/calendar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 01c2194..1d15081 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -131,7 +131,7 @@ def month(theyear, themonth, w=0, l=0):
"""Return a month's calendar string (multi-line)."""
w = max(2, w)
l = max(1, l)
- s = (_center(month_name[themonth] + ' ' + `theyear`,
+ s = (_center(month_name[themonth] + ' ' + `theyear`,
7 * (w + 1) - 1).rstrip() +
'\n' * l + weekheader(w).rstrip() + '\n' * l)
for aweek in monthcalendar(theyear, themonth):
@@ -167,7 +167,7 @@ def calendar(year, w=0, l=0, c=_spacing):
for q in range(January, January+12, 3):
s = (s + '\n' * l +
format3cstring(month_name[q], month_name[q+1], month_name[q+2],
- colwidth, c).rstrip() +
+ colwidth, c).rstrip() +
'\n' * l + header + '\n' * l)
data = []
height = 0
@@ -183,7 +183,7 @@ def calendar(year, w=0, l=0, c=_spacing):
weeks.append('')
else:
weeks.append(week(cal[i], w))
- s = s + format3cstring(weeks[0], weeks[1], weeks[2],
+ s = s + format3cstring(weeks[0], weeks[1], weeks[2],
colwidth, c).rstrip() + '\n' * l
return s[:-l] + '\n'