misc > utils

This commit is contained in:
Kenneth Reitz
2011-03-19 19:29:13 -04:00
parent 679e0ecb20
commit cefc28fff7
-8
View File
@@ -2,14 +2,6 @@
import sys
class Borg(object):
"""All instances of Borg have the same value."""
_shared_state = {}
def __new__(cls, *a, **k):
obj = object.__new__(cls, *a, **k)
obj.__dict__ = cls._shared_state
return obj
def progressbar(it, prefix='', size=32, hide=False):
count = len(it)
if count: