diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-06-14 13:14:29 +0200 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-06-14 13:14:29 +0200 |
commit | ead3e3d984b83dca494600d9c989e6d4ed21c667 (patch) | |
tree | 12581ba20ed87f8e8fecffebbf8fc365ed8377c7 /bvggrabber | |
parent | c14fefa5b8635d030d2150a42a37894d035410bf (diff) | |
download | bvg-grabber-ead3e3d984b83dca494600d9c989e6d4ed21c667.tar.gz bvg-grabber-ead3e3d984b83dca494600d9c989e6d4ed21c667.tar.bz2 bvg-grabber-ead3e3d984b83dca494600d9c989e6d4ed21c667.zip |
Add `__repr__()` for departures
Diffstat (limited to 'bvggrabber')
-rw-r--r-- | bvggrabber/api/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
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__() |