commit 46489362d9c3657e74d9f52bc5a7c19b6706d3f1 Author: Arturo Filastò <a...@fuffa.org> Date: Wed May 21 12:38:18 2014 +0200
Bump to version 1.0.0 --- oonib/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oonib/__init__.py b/oonib/__init__.py index ac17bef..980acb0 100644 --- a/oonib/__init__.py +++ b/oonib/__init__.py @@ -3,13 +3,14 @@ In here we shall keep track of all variables and objects that should be instantiated only once and be common to pieces of GLBackend code. """ -__version__ = '1.0.0-rc6' +__version__ = '1.0.0' __all__ = ['Storage', 'randomStr'] import string import random + class Storage(dict): """ A Storage object is like a dictionary except `obj.foo` can be used @@ -36,7 +37,7 @@ class Storage(dict): try: del self[key] except KeyError, k: - raise AttributeError, k + raise AttributeError(k) def __repr__(self): return '<Storage ' + dict.__repr__(self) + '>' @@ -47,6 +48,7 @@ class Storage(dict): def __setstate__(self, value): self.update(value.items()) + def randomStr(length, num=True): """ Returns a random a mixed lowercase, uppercase, alfanumerical (if num True)
_______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits