[Python-checkins] r42218 - sandbox/trunk/pycon/parse_sched.py
andrew.kuchling
python-checkins at python.org
Wed Feb 1 03:01:39 CET 2006
Author: andrew.kuchling
Date: Wed Feb 1 03:01:37 2006
New Revision: 42218
Modified:
sandbox/trunk/pycon/parse_sched.py
Log:
Remove extra newlines
Modified: sandbox/trunk/pycon/parse_sched.py
==============================================================================
--- sandbox/trunk/pycon/parse_sched.py (original)
+++ sandbox/trunk/pycon/parse_sched.py Wed Feb 1 03:01:37 2006
@@ -209,25 +209,25 @@
talk_title = talks.talk_dict.get(title.replace('#', '')) or title
date = list(day) + [ int(x) for x in texttime.split(':') ]
date = datetime.datetime(*date).strftime("%Y%m%dT%H%M00")
- print >>output, 'BEGIN:VEVENT\n'
- print >>output, 'DTSTART;TZID=US-Eastern:%s\n' % date
+ print >>output, 'BEGIN:VEVENT'
+ print >>output, 'DTSTART;TZID=US-Eastern:%s' % date
if location != '---':
- print >>output, 'LOCATION: %s\n' % location
- print >>output, 'SUMMARY: %s\n' % talk_title
- print >>output, 'UID:%s@%s\n' % (date, 'pycon.org')
- print >>output, 'SEQUENCE:1\n'
+ print >>output, 'LOCATION: %s' % location
+ print >>output, 'SUMMARY: %s' % talk_title
+ print >>output, 'UID:%s@%s' % (date, 'pycon.org')
+ print >>output, 'SEQUENCE:1'
# XXX what are these two?
- print >>output, 'DTSTAMP: %s\n' % date
- print >>output, 'DURATION:PT%iM\n' % duration
- print >>output, 'END:VEVENT\n\n'
+ print >>output, 'DTSTAMP: %s' % date
+ print >>output, 'DURATION:PT%iM' % duration
+ print >>output, 'END:VEVENT\n'
def output_ical (d, output):
- print >>output, 'BEGIN:VCALENDAR\n'
- print >>output, 'VERSION:2.0\n'
- print >>output, 'PRODID:-//Conference Software//EN\n'
- print >>output, 'CALSCALE:GREGORIAN\n'
- print >>output, 'X-WR-CALNAME: PyCon 2006 Events\n'
- print >>output, '\n'
+ print >>output, 'BEGIN:VCALENDAR'
+ print >>output, 'VERSION:2.0'
+ print >>output, 'PRODID:-//Conference Software//EN'
+ print >>output, 'CALSCALE:GREGORIAN'
+ print >>output, 'X-WR-CALNAME: PyCon 2006 Events'
+ print >>output
for day in d:
for talk in d[day]:
event(day, talk, output)
More information about the Python-checkins
mailing list