From e35107f881e47e9e6faa5fe040eeb8abf8f0dda9 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Mon, 23 Jan 2012 18:25:59 -0500 Subject: [PATCH] fixed object.__new__ depreciation warning --- p2pool/bitcoin/data.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.1