From: Forrest Voight Date: Mon, 23 Jan 2012 23:25:59 +0000 (-0500) Subject: fixed object.__new__ depreciation warning X-Git-Tag: 0.8.3~69 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=e35107f881e47e9e6faa5fe040eeb8abf8f0dda9;p=p2pool.git fixed object.__new__ depreciation warning --- diff --git a/p2pool/bitcoin/data.py b/p2pool/bitcoin/data.py index 8f9e06a..e47e291 100644 --- a/p2pool/bitcoin/data.py +++ b/p2pool/bitcoin/data.py @@ -217,7 +217,7 @@ class IntType(Type): if bits in [8, 16, 32, 64]: return StructType(('<' if endianness == 'little' else '>') + {8: 'B', 16: 'H', 32: 'I', 64: 'Q'}[bits]) else: - return object.__new__(cls, bits, endianness) + return Type.__new__(cls, bits, endianness) def __init__(self, bits, endianness='little'): assert bits % 8 == 0