1.1 --- a/imiptools/period.py Sat Aug 01 22:24:43 2015 +0200
1.2 +++ b/imiptools/period.py Sat Aug 01 23:06:48 2015 +0200
1.3 @@ -72,7 +72,7 @@
1.4 return self.get_start(), self.get_end()
1.5
1.6 def __repr__(self):
1.7 - return "Period(%r)" % (self.as_tuple(),)
1.8 + return "Period%r" % (self.as_tuple(),)
1.9
1.10 # Datetime metadata methods.
1.11
1.12 @@ -131,8 +131,8 @@
1.13
1.14 null = lambda x: (strings_only and [""] or [x])[0]
1.15 return (
1.16 - format_datetime(self.get_start_point()),
1.17 - format_datetime(self.get_end_point()),
1.18 + strings_only and format_datetime(self.get_start_point()) or self.start,
1.19 + strings_only and format_datetime(self.get_end_point()) or self.end,
1.20 self.uid or null(self.uid),
1.21 self.transp or strings_only and "OPAQUE" or None,
1.22 self.recurrenceid or null(self.recurrenceid),
1.23 @@ -157,7 +157,7 @@
1.24 return self.uid, self.recurrenceid, self.get_start()
1.25
1.26 def __repr__(self):
1.27 - return "FreeBusyPeriod(%r)" % (self.as_tuple(),)
1.28 + return "FreeBusyPeriod%r" % (self.as_tuple(),)
1.29
1.30 class RecurringPeriod(Period):
1.31
1.32 @@ -181,7 +181,7 @@
1.33 return self.start, self.end, self.tzid, self.origin, self.start_attr, self.end_attr
1.34
1.35 def __repr__(self):
1.36 - return "RecurringPeriod(%r)" % (self.as_tuple(),)
1.37 + return "RecurringPeriod%r" % (self.as_tuple(),)
1.38
1.39 # Period and event recurrence logic.
1.40