1. Erik van Zijst
  2. interruptingcow

Commits

Erik van Zijst  committed 984794c

Added __str__.

  • Participants
  • Parent commits 2cedd4b
  • Branches master

Comments (0)

Files changed (1)

File interruptingcow/__init__.py

View file
         self._depth = 0
         self._starttime = None
 
+    def __str__(self):
+        return '<Quota remaining=%s>' % self.remaining()
+
     def _start(self):
         if self._depth is 0:
             self._starttime = time.time()