From ead3e3d984b83dca494600d9c989e6d4ed21c667 Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Fri, 14 Jun 2013 13:14:29 +0200 Subject: Add `__repr__()` for departures --- bvggrabber/api/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bvggrabber') diff --git a/bvggrabber/api/__init__.py b/bvggrabber/api/__init__.py index d044dad..fc47a9a 100644 --- a/bvggrabber/api/__init__.py +++ b/bvggrabber/api/__init__.py @@ -170,3 +170,6 @@ class Departure(object): return "Start: %s, End: %s, when: %s, now: %s, line: %s" % ( self.start, self.end, timeformat(self.when), timeformat(self.now), self.line) + + def __repr__(self): + return self.__str__() -- cgit v1.2.3