mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
misc > utils
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user