http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/commit/da13550cd10cff57b07a56b535a0a37cc783e3fc
__new__(cls,n) - except Exception as e: - return cls.init_fail(e,n) - - @classmethod - def colorize(cls,s,color=True): - k = color if type(color) is str else cls.color # hack: override color with str value - return globals()[k](str(s)) if (color or cls.color_always) else str(s) +class ETHNonce(Int): + min_val = 0 + 27 - 19 mmgen/obj.py View File @@ -181,7 +181,32 @@ class Hilite(object): return self.colorize(self,color=False) class Str(str,Hilite): pass -class Int(int,Hilite): pass +...