From f5194c1186dd2f90dc8743e33fdcce25a3a287a6 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 5 Nov 2012 15:56:17 +0100 Subject: [PATCH] String representation for a pytahoe.Filesystem --- pytahoe/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytahoe/__init__.py b/pytahoe/__init__.py index 1d5ed5e..09fb72a 100644 --- a/pytahoe/__init__.py +++ b/pytahoe/__init__.py @@ -45,6 +45,9 @@ class Filesystem: self.url = url self.start_date = time.time() - data['stats']['node.uptime'] + def __repr__(self): + return "" % self.url + def standard_request(self, destination, data=None): return self.do_json_request("/%s?t=json" % destination, data)