diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-20 14:53:12 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-22 11:39:33 +0100 |
commit | 91a1f4f1b88d16f61b602d5c5ab2ca8e9f7228d9 (patch) | |
tree | afbe0e0b0ff77859eb7c3344f6f9c6dc91c3b30f /morphlib | |
parent | ad52cf3a15054a06f4140d200dbc7ce253a814d9 (diff) | |
download | morph-91a1f4f1b88d16f61b602d5c5ab2ca8e9f7228d9.tar.gz |
Prettify str(RemoteArtifactCache) to be the server URL
This makes error messages that print the artifact cache object be
useful to the reader.
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/remoteartifactcache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/remoteartifactcache.py b/morphlib/remoteartifactcache.py index ecbb7d3a..dae252ac 100644 --- a/morphlib/remoteartifactcache.py +++ b/morphlib/remoteartifactcache.py @@ -104,3 +104,6 @@ class RemoteArtifactCache(object): server_url += '/' return urlparse.urljoin( server_url, '/1.0/artifacts?filename=%s' % filename) + + def __str__(self): # pragma: no cover + return self.server_url |